Package com.linecorp.armeria.client
Interface DecoratingHttpClientFunction
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A functional interface that enables building a
SimpleDecoratingHttpClient
with
ClientBuilder.decorator(DecoratingHttpClientFunction)
.-
Method Summary
Modifier and TypeMethodDescriptionexecute
(HttpClient delegate, ClientRequestContext ctx, HttpRequest req)
-
Method Details
-
execute
HttpResponse execute(HttpClient delegate, ClientRequestContext ctx, HttpRequest req) throws Exception - Parameters:
delegate
- theHttpClient
being decorated by this functionctx
- the context of theHttpRequest
being sentreq
- theHttpRequest
being sent- Returns:
- the
HttpResponse
to be received - Throws:
Exception
-