Package com.linecorp.armeria.client
Interface HttpClient
- All Superinterfaces:
Client<HttpRequest,HttpResponse>
,Unwrappable
- All Known Implementing Classes:
BraveClient
,CircuitBreakerClient
,ConcurrencyLimitingClient
,ContentPreviewingClient
,DecodingClient
,LoggingClient
,MetricCollectingClient
,RetryingClient
,SimpleDecoratingHttpClient
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface HttpClient extends Client<HttpRequest,HttpResponse>
Sends an
HttpRequest
to a remote Endpoint
.-
Method Summary
Modifier and Type Method Description HttpResponse
execute(ClientRequestContext ctx, HttpRequest req)
-
Method Details
-
execute
Description copied from interface:Client
- Specified by:
execute
in interfaceClient<HttpRequest,HttpResponse>
- Returns:
- the
Response
to the specifiedRequest
- Throws:
Exception
-