public interface Client
RequestContext.requestScopedClient()
within request handling, or
- Environment.client()
otherwise.Modifier and Type | Method and Description |
---|---|
CompletionStage<Response<okio.ByteString>> |
send(Request request)
Send a Request and get an asynchronous Response as a CompletionStage.
|
CompletionStage<Response<okio.ByteString>> send(Request request)
request
- the request to sendResponse
,
or completes exceptionally if there is a failure sending the request.
An error status code returned by the service is a normal completion.Copyright © 2016. All rights reserved.