Uses of Interface
io.netty.handler.codec.http.HttpRequest
Packages that use HttpRequest
Package
Description
Encoder, decoder and their related message types for HTTP.
This package contains Cross Origin Resource Sharing (CORS) related classes.
HTTP multipart support.
Encoder, decoder, handshakers and their related message types for
Web Socket data frames.
Encoder, decoder, handshakers to handle
WebSocket Extensions.
Handlers for sending and receiving HTTP/2 frames.
Encoder, decoder, session handler and their related message types for the SPDY protocol.
-
Uses of HttpRequest in io.netty.handler.codec.http
Subinterfaces of HttpRequest in io.netty.handler.codec.httpModifier and TypeInterfaceDescriptioninterface
Combine theHttpRequest
andFullHttpMessage
, so the request is a complete HTTP request.Classes in io.netty.handler.codec.http that implement HttpRequestModifier and TypeClassDescriptionclass
Default implementation ofFullHttpRequest
.class
The defaultHttpRequest
implementation.private static final class
Methods in io.netty.handler.codec.http that return HttpRequestModifier and TypeMethodDescriptionDefaultHttpRequest.setMethod
(HttpMethod method) HttpRequest.setMethod
(HttpMethod method) Set theHttpMethod
of thisHttpRequest
.DefaultHttpRequest.setProtocolVersion
(HttpVersion version) HttpRequest.setProtocolVersion
(HttpVersion version) Set the requested URI (or alternatively, path)Methods in io.netty.handler.codec.http with parameters of type HttpRequestModifier and TypeMethodDescriptionprotected HttpResponse
HttpServerExpectContinueHandler.acceptMessage
(HttpRequest request) Produces aHttpResponse
forHttpRequest
s which define an expectation.private static void
HttpMessageUtil.appendInitialLine
(StringBuilder buf, HttpRequest req) (package private) static StringBuilder
HttpMessageUtil.appendRequest
(StringBuilder buf, HttpRequest req) protected void
HttpContentEncoder.decode
(ChannelHandlerContext ctx, HttpRequest msg, List<Object> out) protected void
HttpRequestEncoder.encodeInitialLine
(ByteBuf buf, HttpRequest request) protected HttpResponse
HttpServerExpectContinueHandler.rejectResponse
(HttpRequest request) Returns the appropriate 4XXHttpResponse
for the givenHttpRequest
.HttpClientUpgradeHandler.UpgradeCodec.setUpgradeHeaders
(ChannelHandlerContext ctx, HttpRequest upgradeRequest) Sets any protocol-specific headers required to the upgrade request.private void
HttpClientUpgradeHandler.setUpgradeRequestHeaders
(ChannelHandlerContext ctx, HttpRequest request) Adds all upgrade request headers necessary for an upgrade to the supported protocols.protected boolean
HttpServerUpgradeHandler.shouldHandleUpgradeRequest
(HttpRequest req) Determines whether the specified upgradeHttpRequest
should be handled by this handler or not.Constructors in io.netty.handler.codec.http with parameters of type HttpRequestModifierConstructorDescription(package private)
AggregatedFullHttpRequest
(HttpRequest request, ByteBuf content, HttpHeaders trailingHeaders) -
Uses of HttpRequest in io.netty.handler.codec.http.cors
Fields in io.netty.handler.codec.http.cors declared as HttpRequestMethods in io.netty.handler.codec.http.cors with parameters of type HttpRequestModifier and TypeMethodDescriptionprivate static void
CorsHandler.forbidden
(ChannelHandlerContext ctx, HttpRequest request) private void
CorsHandler.handlePreflight
(ChannelHandlerContext ctx, HttpRequest request) private static boolean
CorsHandler.isPreflightRequest
(HttpRequest request) private static void
CorsHandler.respond
(ChannelHandlerContext ctx, HttpRequest request, HttpResponse response) -
Uses of HttpRequest in io.netty.handler.codec.http.multipart
Classes in io.netty.handler.codec.http.multipart that implement HttpRequestModifier and TypeClassDescriptionprivate static final class
private static class
Fields in io.netty.handler.codec.http.multipart declared as HttpRequestModifier and TypeFieldDescriptionprivate final HttpRequest
HttpPostMultipartRequestDecoder.request
Request to decodeprivate final HttpRequest
HttpPostRequestEncoder.request
Request to encodeprivate final HttpRequest
HttpPostRequestEncoder.WrappedHttpRequest.request
private final HttpRequest
HttpPostStandardRequestDecoder.request
Request to decodeFields in io.netty.handler.codec.http.multipart with type parameters of type HttpRequestModifier and TypeFieldDescriptionprivate final Map
<HttpRequest, List<HttpData>> DefaultHttpDataFactory.requestFileDeleteMap
Keep allHttpData
s until cleaning methods are called.Methods in io.netty.handler.codec.http.multipart that return HttpRequestModifier and TypeMethodDescriptionHttpPostRequestEncoder.finalizeRequest()
Finalize the request by preparing the Header in the request and returns the request ready to be sent.
Once finalized, no data must be added.
If the request does not need chunk (isChunked() == false), this request is the only object to send to the remote server.HttpPostRequestEncoder.WrappedHttpRequest.setMethod
(HttpMethod method) HttpPostRequestEncoder.WrappedHttpRequest.setProtocolVersion
(HttpVersion version) Methods in io.netty.handler.codec.http.multipart with parameters of type HttpRequestModifier and TypeMethodDescriptionvoid
DefaultHttpDataFactory.cleanRequestHttpData
(HttpRequest request) void
HttpDataFactory.cleanRequestHttpData
(HttpRequest request) Remove all InterfaceHttpData from virtual File storage from clean list for the requestvoid
DefaultHttpDataFactory.cleanRequestHttpDatas
(HttpRequest request) void
HttpDataFactory.cleanRequestHttpDatas
(HttpRequest request) Deprecated.DefaultHttpDataFactory.createAttribute
(HttpRequest request, String name) DefaultHttpDataFactory.createAttribute
(HttpRequest request, String name, long definedSize) DefaultHttpDataFactory.createAttribute
(HttpRequest request, String name, String value) HttpDataFactory.createAttribute
(HttpRequest request, String name) HttpDataFactory.createAttribute
(HttpRequest request, String name, long definedSize) HttpDataFactory.createAttribute
(HttpRequest request, String name, String value) DefaultHttpDataFactory.createFileUpload
(HttpRequest request, String name, String filename, String contentType, String contentTransferEncoding, Charset charset, long size) HttpDataFactory.createFileUpload
(HttpRequest request, String name, String filename, String contentType, String contentTransferEncoding, Charset charset, long size) DefaultHttpDataFactory.getList
(HttpRequest request) static boolean
HttpPostRequestDecoder.isMultipart
(HttpRequest request) Check if the given request is a multipart requestvoid
DefaultHttpDataFactory.removeHttpDataFromClean
(HttpRequest request, InterfaceHttpData data) void
HttpDataFactory.removeHttpDataFromClean
(HttpRequest request, InterfaceHttpData data) Remove the given InterfaceHttpData from clean list (will not delete the file, except if the file is still a temporary one as setup at construction)Constructors in io.netty.handler.codec.http.multipart with parameters of type HttpRequestModifierConstructorDescriptionHttpPostMultipartRequestDecoder
(HttpDataFactory factory, HttpRequest request) HttpPostMultipartRequestDecoder
(HttpDataFactory factory, HttpRequest request, Charset charset) HttpPostMultipartRequestDecoder
(HttpDataFactory factory, HttpRequest request, Charset charset, int maxFields, int maxBufferedBytes) HttpPostRequestDecoder
(HttpRequest request) HttpPostRequestDecoder
(HttpRequest request, int maxFields, int maxBufferedBytes) HttpPostRequestDecoder
(HttpDataFactory factory, HttpRequest request) HttpPostRequestDecoder
(HttpDataFactory factory, HttpRequest request, Charset charset) HttpPostRequestDecoder
(HttpDataFactory factory, HttpRequest request, Charset charset, int maxFields, int maxBufferedBytes) HttpPostRequestEncoder
(HttpRequest request, boolean multipart) HttpPostRequestEncoder
(HttpDataFactory factory, HttpRequest request, boolean multipart) HttpPostRequestEncoder
(HttpDataFactory factory, HttpRequest request, boolean multipart, Charset charset, HttpPostRequestEncoder.EncoderMode encoderMode) HttpPostStandardRequestDecoder
(HttpDataFactory factory, HttpRequest request) HttpPostStandardRequestDecoder
(HttpDataFactory factory, HttpRequest request, Charset charset) HttpPostStandardRequestDecoder
(HttpDataFactory factory, HttpRequest request, Charset charset, int maxFields, int maxBufferedBytes) private
WrappedFullHttpRequest
(HttpRequest request, HttpContent content) (package private)
WrappedHttpRequest
(HttpRequest request) -
Uses of HttpRequest in io.netty.handler.codec.http.websocketx
Fields in io.netty.handler.codec.http.websocketx declared as HttpRequestModifier and TypeFieldDescriptionprivate final HttpRequest
WebSocketServerHandshakeException.request
Methods in io.netty.handler.codec.http.websocketx that return HttpRequestModifier and TypeMethodDescriptionWebSocketServerHandshakeException.request()
Returns arequest
if exception occurs during request validation otherwisenull
.Methods in io.netty.handler.codec.http.websocketx with parameters of type HttpRequestModifier and TypeMethodDescriptionprivate static String
WebSocketServerProtocolHandshakeHandler.getWebSocketLocation
(ChannelPipeline cp, HttpRequest req, String path) WebSocketServerHandshaker.handshake
(Channel channel, HttpRequest req) Performs the opening handshake.final ChannelFuture
WebSocketServerHandshaker.handshake
(Channel channel, HttpRequest req, HttpHeaders responseHeaders, ChannelPromise promise) Performs the opening handshake When call this method you MUST NOT retain theHttpRequest
which is passed in.private boolean
WebSocketServerProtocolHandshakeHandler.isWebSocketPath
(HttpRequest req) WebSocketServerHandshakerFactory.newHandshaker
(HttpRequest req) Instances a new handshakerprivate static void
WebSocketServerProtocolHandshakeHandler.sendHttpResponse
(ChannelHandlerContext ctx, HttpRequest req, HttpResponse res) Constructors in io.netty.handler.codec.http.websocketx with parameters of type HttpRequestModifierConstructorDescriptionWebSocketServerHandshakeException
(String message, HttpRequest httpRequest) -
Uses of HttpRequest in io.netty.handler.codec.http.websocketx.extensions
Methods in io.netty.handler.codec.http.websocketx.extensions with parameters of type HttpRequestModifier and TypeMethodDescriptionprotected void
WebSocketServerExtensionHandler.onHttpRequestChannelRead
(ChannelHandlerContext ctx, HttpRequest request) This is a method exposed to perform fail-fast checks of user-defined http types. -
Uses of HttpRequest in io.netty.handler.codec.http2
Methods in io.netty.handler.codec.http2 that return HttpRequestModifier and TypeMethodDescriptionstatic HttpRequest
HttpConversionUtil.toHttpRequest
(int streamId, Http2Headers http2Headers, boolean validateHttpHeaders) Create a new object to contain the request data.Methods in io.netty.handler.codec.http2 with parameters of type HttpRequestModifier and TypeMethodDescriptionHttp2ClientUpgradeCodec.setUpgradeHeaders
(ChannelHandlerContext ctx, HttpRequest upgradeRequest) -
Uses of HttpRequest in io.netty.handler.codec.spdy
Methods in io.netty.handler.codec.spdy with parameters of type HttpRequestModifier and TypeMethodDescriptionprivate SpdySynStreamFrame
SpdyHttpEncoder.createSynStreamFrame
(HttpRequest httpRequest)
HttpDataFactory.cleanRequestHttpData(HttpRequest)
instead.