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