Package io.vrap.rmf.base.client.http
Class AcceptGZipMiddleware
java.lang.Object
io.vrap.rmf.base.client.http.AcceptGZipMiddleware
- All Implemented Interfaces:
Middleware
Middleware to add the header
Accept: gzip
to the request-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<ApiHttpResponse<byte[]>>
invoke
(ApiHttpRequest request, Function<ApiHttpRequest, CompletableFuture<ApiHttpResponse<byte[]>>> next) static AcceptGZipMiddleware
of()
-
Constructor Details
-
AcceptGZipMiddleware
public AcceptGZipMiddleware()
-
-
Method Details
-
invoke
public CompletableFuture<ApiHttpResponse<byte[]>> invoke(ApiHttpRequest request, Function<ApiHttpRequest, CompletableFuture<ApiHttpResponse<byte[]>>> next) - Specified by:
invoke
in interfaceMiddleware
-
of
-