-
- All Superinterfaces:
HttpRequest
public interface WebClientServiceRequest extends HttpRequest
Request to SPIWebClientServicethat supports modification of the outgoing request.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.helidon.common.http.HttpRequest
HttpRequest.Path
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Contextcontext()Registry that can be used to propagate information from server (e.g.WebClientRequestHeadersheaders()Configured request headers.Parametersproperties()Properties configured by user when creating this client request.CompletionStage<WebClientServiceResponse>whenComplete()Completes when the full processing of this request is done (e.g.CompletionStage<WebClientServiceResponse>whenResponseReceived()Completes when the response headers has been received, but entity has not been processed yet.CompletionStage<WebClientServiceRequest>whenSent()Completes when the request part of this request is done (e.g.-
Methods inherited from interface io.helidon.common.http.HttpRequest
fragment, method, path, query, queryParams, uri, version
-
-
-
-
Method Detail
-
headers
WebClientRequestHeaders headers()
Configured request headers.- Returns:
- headers (mutable)
-
context
Context context()
Registry that can be used to propagate information from server (e.g. security context, tracing spans etc.).- Returns:
- registry propagated by the user
-
whenSent
CompletionStage<WebClientServiceRequest> whenSent()
Completes when the request part of this request is done (e.g. we have sent all headers and bytes).- Returns:
- completion stage that finishes when we fully send request (including entity) to server
-
whenResponseReceived
CompletionStage<WebClientServiceResponse> whenResponseReceived()
Completes when the response headers has been received, but entity has not been processed yet.- Returns:
- completion stage that finishes when we received headers
-
whenComplete
CompletionStage<WebClientServiceResponse> whenComplete()
Completes when the full processing of this request is done (e.g. we have received a full response).- Returns:
- completion stage that finishes when we receive and fully read response from the server
-
properties
Parameters properties()
Properties configured by user when creating this client request.- Returns:
- properties that were configured
- See Also:
WebClientRequestBuilder.property(String, String...)
-
-