Package io.helidon.nima.http2.webclient
Interface Http2ClientRequest
- All Superinterfaces:
ClientRequest<Http2ClientRequest,Http2ClientResponse>
Request of HTTP/2 client.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.nima.webclient.ClientRequest
ClientRequest.OutputStreamHandler -
Method Summary
Modifier and TypeMethodDescriptionflowControlTimeout(Duration timeout) Outbound flow control blocking timeout.priority(int priority) Priority defines a weight between 1 and 256 (inclusive) to prioritize this stream by the server.priorKnowledge(boolean priorKnowledge) Configure prior knowledge of HTTP/2 (e.g.requestPrefetch(int requestPrefetch) Configure request prefetch, increases both connection and stream inbound flow control window and may send window updates to inform the server, depending on flow control strategy.Maximum timeout for the data reception from request stream.Methods inherited from interface io.helidon.nima.webclient.ClientRequest
connection, header, header, headers, outputStream, path, pathParam, queryParam, request, request, resolvedUri, submit, tls, uri, uri
-
Method Details
-
priority
Priority defines a weight between 1 and 256 (inclusive) to prioritize this stream by the server. Priorities are a suggestion.- Parameters:
priority- priority to configure for this stream (request/response)- Returns:
- updated request
-
priorKnowledge
Configure prior knowledge of HTTP/2 (e.g. we know the server supports it and we do not need to handle upgrade).- Parameters:
priorKnowledge- set totrueto skip HTTP/1.1 upgrade process and use prior knowledge- Returns:
- updated request
-
requestPrefetch
Configure request prefetch, increases both connection and stream inbound flow control window and may send window updates to inform the server, depending on flow control strategy.- Parameters:
requestPrefetch- inbound flow control window increment in bytes- Returns:
- updated request
-
timeout
Maximum timeout for the data reception from request stream.- Parameters:
timeout- timeout duration- Returns:
- updated request
-
flowControlTimeout
Outbound flow control blocking timeout.- Parameters:
timeout- duration- Returns:
- updated request
-