- All Superinterfaces:
ClientRequest<Http1ClientRequest>
Client request for HTTP/1.1.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.webclient.api.ClientRequest
ClientRequest.OutputStreamHandler -
Method Summary
Modifier and TypeMethodDescriptionoutputStream(ClientRequest.OutputStreamHandler outputStreamConsumer) default Http1ClientResponserequest()Upgrade the current request to a different protocol.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
-
submit
- Specified by:
submitin interfaceClientRequest<Http1ClientRequest>
-
request
- Specified by:
requestin interfaceClientRequest<Http1ClientRequest>
-
outputStream
- Specified by:
outputStreamin interfaceClientRequest<Http1ClientRequest>
-
upgrade
Upgrade the current request to a different protocol. As an upgrade is executing the usual HTTP method call, in case of failure to upgrade, the response will be a usual full HTTP response that you would get without an upgrade attempt.Note that the response returned will trigger different behavior depending on whether the upgraded succeeded or failed. For success, it will not close the connection (or return it to the pool), and the upgrade caller must correctly handle the connection close. In case of failure, this is just a regular client response that closes the connection (or returns it to the pool)
- Parameters:
protocol- protocol ID for upgrade- Returns:
- upgrade response
-