Uses of Class
org.jdrupes.httpcodec.protocols.http.HttpRequest
Package
Description
Provides the API for adding “upgrade” protocols
Classes required for handling the HTTP protocol.
HTTP codecs required on the client side.
HTTP codecs required on the server side.
Classes for handling the Websocket protocol.
-
Uses of HttpRequest in org.jdrupes.httpcodec.plugin
Modifier and TypeMethodDescriptionabstract void
UpgradeProvider.augmentInitialRequest
(HttpRequest request) Add protocol specific information to a request with anUpgrade
header field.abstract void
UpgradeProvider.checkSwitchingResponse
(HttpRequest request, HttpResponse response) Check the101 Switching Protocol
response for any problem indicators. -
Uses of HttpRequest in org.jdrupes.httpcodec.protocols.http
Modifier and TypeMethodDescription<T> HttpRequest
HttpRequest.setHasPayload
(boolean hasPayload) HttpRequest.setHostAndPort
(String host, int port) Set the host and port attributes.HttpRequest.setQueryData
(Map<String, List<String>> data) Updates the query part of the request URI, using UTF-8 to encode the query keys and values.Updates the query part of the request URI.HttpRequest.setResponse
(HttpResponse response) Associates the request with a response.HttpRequest.setSimpleQueryData
(Map<String, String> data) Updates the query part of the request URI, using UTF-8 to encode the query keys and values.HttpRequest.setSimpleQueryData
(Map<String, String> data, Charset charset) Updates the query part of the request URI.Modifier and TypeMethodDescriptionHttpResponse.request()
Returns the request that this response responds to.Modifier and TypeMethodDescriptionHttpResponse.setRequest
(HttpRequest request) Associates the response with the request that it responds to. -
Uses of HttpRequest in org.jdrupes.httpcodec.protocols.http.client
Modifier and TypeMethodDescriptionHttpRequestEncoder.encoding()
protected Decoder.Result<HttpRequest>
HttpResponseDecoder.messageComplete
(Decoder.Result<HttpRequest> result) Modifier and TypeMethodDescriptionvoid
HttpRequestEncoder.encode
(HttpRequest messageHeader) protected void
HttpRequestEncoder.startMessage
(HttpRequest messageHeader, Writer writer) Writes the request line.Modifier and TypeMethodDescriptionprotected Decoder.Result<HttpRequest>
HttpResponseDecoder.messageComplete
(Decoder.Result<HttpRequest> result) -
Uses of HttpRequest in org.jdrupes.httpcodec.protocols.http.server
Modifier and TypeMethodDescriptionprotected HttpRequest
HttpRequestDecoder.newMessage
(String startLine) Checks whether the first line of a message is a valid request.Modifier and TypeMethodDescriptionprotected HttpDecoder.BodyMode
HttpRequestDecoder.headerReceived
(HttpRequest message) -
Uses of HttpRequest in org.jdrupes.httpcodec.protocols.websocket
Modifier and TypeMethodDescriptionvoid
WsProtocolProvider.augmentInitialRequest
(HttpRequest request) void
WsProtocolProvider.checkSwitchingResponse
(HttpRequest request, HttpResponse response)