io.vrap.rmf.base.client.http.Middleware Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rmf-java-base Show documentation
Show all versions of rmf-java-base Show documentation
The e-commerce SDK from commercetools Composable Commerce for Java
package io.vrap.rmf.base.client.http;
import java.util.concurrent.CompletableFuture;
import java.util.function.Function;
import io.vrap.rmf.base.client.ApiHttpRequest;
import io.vrap.rmf.base.client.ApiHttpResponse;
/**
* Interface for a HTTP middleware used to modify a request and the response
*/
@FunctionalInterface
public interface Middleware {
CompletableFuture> invoke(final ApiHttpRequest request,
final Function>> next);
}