Uses of Class
org.jdrupes.httpcodec.protocols.http.HttpRequest
Packages that use 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
Methods in org.jdrupes.httpcodec.plugin with parameters of type HttpRequestModifier 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
Methods in org.jdrupes.httpcodec.protocols.http that return HttpRequestModifier 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.Methods in org.jdrupes.httpcodec.protocols.http that return types with arguments of type HttpRequestModifier and TypeMethodDescriptionHttpResponse.request()
Returns the request that this response responds to.Methods in org.jdrupes.httpcodec.protocols.http with parameters of type HttpRequestModifier 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
Methods in org.jdrupes.httpcodec.protocols.http.client that return types with arguments of type HttpRequestModifier and TypeMethodDescriptionHttpRequestEncoder.encoding()
protected Decoder.Result<HttpRequest>
HttpResponseDecoder.messageComplete
(Decoder.Result<HttpRequest> result) Methods in org.jdrupes.httpcodec.protocols.http.client with parameters of type HttpRequestModifier and TypeMethodDescriptionvoid
HttpRequestEncoder.encode
(HttpRequest messageHeader) protected void
HttpRequestEncoder.startMessage
(HttpRequest messageHeader, Writer writer) Writes the request line.Method parameters in org.jdrupes.httpcodec.protocols.http.client with type arguments of type HttpRequestModifier and TypeMethodDescriptionprotected Decoder.Result<HttpRequest>
HttpResponseDecoder.messageComplete
(Decoder.Result<HttpRequest> result) -
Uses of HttpRequest in org.jdrupes.httpcodec.protocols.http.server
Methods in org.jdrupes.httpcodec.protocols.http.server that return HttpRequestModifier and TypeMethodDescriptionprotected HttpRequest
HttpRequestDecoder.newMessage
(String startLine) Checks whether the first line of a message is a valid request.Methods in org.jdrupes.httpcodec.protocols.http.server that return types with arguments of type HttpRequestMethods in org.jdrupes.httpcodec.protocols.http.server with parameters of type HttpRequestModifier and TypeMethodDescriptionprotected HttpDecoder.BodyMode
HttpRequestDecoder.headerReceived
(HttpRequest message) -
Uses of HttpRequest in org.jdrupes.httpcodec.protocols.websocket
Methods in org.jdrupes.httpcodec.protocols.websocket with parameters of type HttpRequestModifier and TypeMethodDescriptionvoid
WsProtocolProvider.augmentInitialRequest
(HttpRequest request) void
WsProtocolProvider.checkSwitchingResponse
(HttpRequest request, HttpResponse response)