- All Superinterfaces:
ClientRequest<Http2ClientRequest>
Request of HTTP/2 client.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.webclient.api.ClientRequest
ClientRequest.OutputStreamHandler
-
Method Summary
Modifier and TypeMethodDescriptionflowControlTimeout
(Duration timeout) Outbound flow control blocking timeout.outputStream
(ClientRequest.OutputStreamHandler outputStreamConsumer) Handle output stream and submit the request.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 Http2ClientResponse
request()
Request without an entity.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.Submit an entity.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 totrue
to 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
-
flowControlTimeout
Outbound flow control blocking timeout.- Parameters:
timeout
- duration- Returns:
- updated request
-
request
Description copied from interface:ClientRequest
Request without an entity.- Specified by:
request
in interfaceClientRequest<Http2ClientRequest>
- Returns:
- response
-
submit
Description copied from interface:ClientRequest
Submit an entity.- Specified by:
submit
in interfaceClientRequest<Http2ClientRequest>
- Parameters:
entity
- request entity- Returns:
- response
-
outputStream
Description copied from interface:ClientRequest
Handle output stream and submit the request.- Specified by:
outputStream
in interfaceClientRequest<Http2ClientRequest>
- Parameters:
outputStreamConsumer
- output stream to write request entity- Returns:
- response
-