- All Superinterfaces:
io.helidon.webclient.api.ClientRequest<Http2ClientRequest>
public interface Http2ClientRequest
extends io.helidon.webclient.api.ClientRequest<Http2ClientRequest>
Request of HTTP/2 client.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.webclient.api.ClientRequest
io.helidon.webclient.api.ClientRequest.OutputStreamHandler -
Method Summary
Modifier and TypeMethodDescriptionflowControlTimeout(Duration timeout) Outbound flow control blocking timeout.outputStream(io.helidon.webclient.api.ClientRequest.OutputStreamHandler outputStreamConsumer) 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.default Http2ClientResponserequest()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.webclient.api.ClientRequest
accept, accept, connection, contentType, followRedirects, followRedirects, fragment, fragment, header, header, header, headers, headers, headers, keepAlive, maxRedirects, maxRedirects, outputStream, path, pathParam, property, proxy, queryParam, readContinueTimeout, readTimeout, request, requestEntity, resolvedUri, skipUriEncoding, submit, tls, uri, 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
-
request
- Specified by:
requestin interfaceio.helidon.webclient.api.ClientRequest<Http2ClientRequest>
-
submit
- Specified by:
submitin interfaceio.helidon.webclient.api.ClientRequest<Http2ClientRequest>
-
outputStream
Http2ClientResponse outputStream(io.helidon.webclient.api.ClientRequest.OutputStreamHandler outputStreamConsumer) - Specified by:
outputStreamin interfaceio.helidon.webclient.api.ClientRequest<Http2ClientRequest>
-