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 TypeInterfaceDescriptioninterfaceCombine theHttpRequestandFullHttpMessage, so the request is a complete HTTP request.Classes in io.netty.handler.codec.http that implement HttpRequestModifier and TypeClassDescriptionclassDefault implementation ofFullHttpRequest.classThe defaultHttpRequestimplementation.private static final classMethods in io.netty.handler.codec.http that return HttpRequestModifier and TypeMethodDescriptionDefaultHttpRequest.setMethod(HttpMethod method) HttpRequest.setMethod(HttpMethod method) Set theHttpMethodof 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 HttpResponseHttpServerExpectContinueHandler.acceptMessage(HttpRequest request) Produces aHttpResponseforHttpRequests which define an expectation.private static voidHttpMessageUtil.appendInitialLine(StringBuilder buf, HttpRequest req) (package private) static StringBuilderHttpMessageUtil.appendRequest(StringBuilder buf, HttpRequest req) protected voidHttpContentEncoder.decode(ChannelHandlerContext ctx, HttpRequest msg, List<Object> out) protected voidHttpRequestEncoder.encodeInitialLine(ByteBuf buf, HttpRequest request) protected HttpResponseHttpServerExpectContinueHandler.rejectResponse(HttpRequest request) Returns the appropriate 4XXHttpResponsefor the givenHttpRequest.HttpClientUpgradeHandler.UpgradeCodec.setUpgradeHeaders(ChannelHandlerContext ctx, HttpRequest upgradeRequest) Sets any protocol-specific headers required to the upgrade request.private voidHttpClientUpgradeHandler.setUpgradeRequestHeaders(ChannelHandlerContext ctx, HttpRequest request) Adds all upgrade request headers necessary for an upgrade to the supported protocols.protected booleanHttpServerUpgradeHandler.shouldHandleUpgradeRequest(HttpRequest req) Determines whether the specified upgradeHttpRequestshould 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 voidCorsHandler.forbidden(ChannelHandlerContext ctx, HttpRequest request) private voidCorsHandler.handlePreflight(ChannelHandlerContext ctx, HttpRequest request) private static booleanCorsHandler.isPreflightRequest(HttpRequest request) private static voidCorsHandler.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 classprivate static classFields in io.netty.handler.codec.http.multipart declared as HttpRequestModifier and TypeFieldDescriptionprivate final HttpRequestHttpPostMultipartRequestDecoder.requestRequest to decodeprivate final HttpRequestHttpPostRequestEncoder.requestRequest to encodeprivate final HttpRequestHttpPostRequestEncoder.WrappedHttpRequest.requestprivate final HttpRequestHttpPostStandardRequestDecoder.requestRequest to decodeFields in io.netty.handler.codec.http.multipart with type parameters of type HttpRequestModifier and TypeFieldDescriptionprivate final Map<HttpRequest, List<HttpData>> DefaultHttpDataFactory.requestFileDeleteMapKeep allHttpDatas 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 TypeMethodDescriptionvoidDefaultHttpDataFactory.cleanRequestHttpData(HttpRequest request) voidHttpDataFactory.cleanRequestHttpData(HttpRequest request) Remove all InterfaceHttpData from virtual File storage from clean list for the requestvoidDefaultHttpDataFactory.cleanRequestHttpDatas(HttpRequest request) voidHttpDataFactory.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 booleanHttpPostRequestDecoder.isMultipart(HttpRequest request) Check if the given request is a multipart requestvoidDefaultHttpDataFactory.removeHttpDataFromClean(HttpRequest request, InterfaceHttpData data) voidHttpDataFactory.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) privateWrappedFullHttpRequest(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 HttpRequestWebSocketServerHandshakeException.requestMethods in io.netty.handler.codec.http.websocketx that return HttpRequestModifier and TypeMethodDescriptionWebSocketServerHandshakeException.request()Returns arequestif exception occurs during request validation otherwisenull.Methods in io.netty.handler.codec.http.websocketx with parameters of type HttpRequestModifier and TypeMethodDescriptionprivate static StringWebSocketServerProtocolHandshakeHandler.getWebSocketLocation(ChannelPipeline cp, HttpRequest req, String path) WebSocketServerHandshaker.handshake(Channel channel, HttpRequest req) Performs the opening handshake.final ChannelFutureWebSocketServerHandshaker.handshake(Channel channel, HttpRequest req, HttpHeaders responseHeaders, ChannelPromise promise) Performs the opening handshake When call this method you MUST NOT retain theHttpRequestwhich is passed in.private booleanWebSocketServerProtocolHandshakeHandler.isWebSocketPath(HttpRequest req) WebSocketServerHandshakerFactory.newHandshaker(HttpRequest req) Instances a new handshakerprivate static voidWebSocketServerProtocolHandshakeHandler.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 voidWebSocketServerExtensionHandler.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 HttpRequestHttpConversionUtil.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 SpdySynStreamFrameSpdyHttpEncoder.createSynStreamFrame(HttpRequest httpRequest)
HttpDataFactory.cleanRequestHttpData(HttpRequest)instead.