Package | Description |
---|---|
io.netty.handler.codec.http |
Encoder, decoder and their related message types for HTTP.
|
io.netty.handler.codec.http.multipart |
HTTP multipart support.
|
io.netty.handler.codec.http.websocketx |
Encoder, decoder, handshakers and their related message types for
Web Socket data frames.
|
io.netty.handler.codec.http.websocketx.extensions |
Encoder, decoder, handshakers to handle
WebSocket Extensions.
|
Modifier and Type | Interface and Description |
---|---|
interface |
FullHttpRequest
Combine the
HttpRequest and FullHttpMessage , so the request is a complete HTTP
request. |
Modifier and Type | Class and Description |
---|---|
class |
DefaultFullHttpRequest
Default implementation of
FullHttpRequest . |
class |
DefaultHttpRequest
The default
HttpRequest implementation. |
Modifier and Type | Method and Description |
---|---|
HttpRequest |
HttpRequest.setMethod(HttpMethod method)
Set the
HttpMethod of this HttpRequest . |
HttpRequest |
DefaultHttpRequest.setMethod(HttpMethod method) |
HttpRequest |
HttpRequest.setProtocolVersion(HttpVersion version) |
HttpRequest |
DefaultHttpRequest.setProtocolVersion(HttpVersion version) |
HttpRequest |
HttpRequest.setUri(String uri)
Set the requested URI (or alternatively, path)
|
HttpRequest |
DefaultHttpRequest.setUri(String uri) |
Modifier and Type | Method and Description |
---|---|
protected HttpResponse |
HttpServerExpectContinueHandler.acceptMessage(HttpRequest request)
Produces a
HttpResponse for HttpRequest s which define an expectation. |
protected void |
HttpContentEncoder.decode(io.netty.channel.ChannelHandlerContext ctx,
HttpRequest msg,
List<Object> out) |
protected void |
HttpRequestEncoder.encodeInitialLine(io.netty.buffer.ByteBuf buf,
HttpRequest request) |
protected HttpResponse |
HttpServerExpectContinueHandler.rejectResponse(HttpRequest request)
Returns the appropriate 4XX
HttpResponse for the given HttpRequest . |
Collection<CharSequence> |
HttpClientUpgradeHandler.UpgradeCodec.setUpgradeHeaders(io.netty.channel.ChannelHandlerContext ctx,
HttpRequest upgradeRequest)
Sets any protocol-specific headers required to the upgrade request.
|
protected boolean |
HttpServerUpgradeHandler.shouldHandleUpgradeRequest(HttpRequest req)
Determines whether the specified upgrade
HttpRequest should be handled by this handler or not. |
Modifier and Type | Method and Description |
---|---|
HttpRequest |
HttpPostRequestEncoder.finalizeRequest()
Finalize the request by preparing the Header in the request and returns the request ready to be sent.
|
Modifier and Type | Method and Description |
---|---|
void |
DefaultHttpDataFactory.cleanRequestHttpData(HttpRequest request) |
void |
HttpDataFactory.cleanRequestHttpData(HttpRequest request)
Remove all InterfaceHttpData from virtual File storage from clean list for the request
|
void |
DefaultHttpDataFactory.cleanRequestHttpDatas(HttpRequest request) |
void |
HttpDataFactory.cleanRequestHttpDatas(HttpRequest request)
Deprecated.
Use
HttpDataFactory.cleanRequestHttpData(HttpRequest) instead. |
Attribute |
DefaultHttpDataFactory.createAttribute(HttpRequest request,
String name) |
Attribute |
HttpDataFactory.createAttribute(HttpRequest request,
String name) |
Attribute |
DefaultHttpDataFactory.createAttribute(HttpRequest request,
String name,
long definedSize) |
Attribute |
HttpDataFactory.createAttribute(HttpRequest request,
String name,
long definedSize) |
Attribute |
DefaultHttpDataFactory.createAttribute(HttpRequest request,
String name,
String value) |
Attribute |
HttpDataFactory.createAttribute(HttpRequest request,
String name,
String value) |
FileUpload |
DefaultHttpDataFactory.createFileUpload(HttpRequest request,
String name,
String filename,
String contentType,
String contentTransferEncoding,
Charset charset,
long size) |
FileUpload |
HttpDataFactory.createFileUpload(HttpRequest request,
String name,
String filename,
String contentType,
String contentTransferEncoding,
Charset charset,
long size) |
static boolean |
HttpPostRequestDecoder.isMultipart(HttpRequest request)
Check if the given request is a multipart request
|
void |
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)
|
Modifier and Type | Method and Description |
---|---|
HttpRequest |
WebSocketServerHandshakeException.request()
Returns a
request if exception occurs during request validation otherwise null . |
Modifier and Type | Method and Description |
---|---|
io.netty.channel.ChannelFuture |
WebSocketServerHandshaker.handshake(io.netty.channel.Channel channel,
HttpRequest req)
Performs the opening handshake.
|
io.netty.channel.ChannelFuture |
WebSocketServerHandshaker.handshake(io.netty.channel.Channel channel,
HttpRequest req,
HttpHeaders responseHeaders,
io.netty.channel.ChannelPromise promise)
Performs the opening handshake
When call this method you MUST NOT retain the
HttpRequest which is passed in. |
WebSocketServerHandshaker |
WebSocketServerHandshakerFactory.newHandshaker(HttpRequest req)
Instances a new handshaker
|
Constructor and Description |
---|
WebSocketServerHandshakeException(String message,
HttpRequest httpRequest) |
Modifier and Type | Method and Description |
---|---|
protected void |
WebSocketServerExtensionHandler.onHttpRequestChannelRead(io.netty.channel.ChannelHandlerContext ctx,
HttpRequest request)
This is a method exposed to perform fail-fast checks of user-defined http types.
|
Copyright © 2008–2023 The Netty Project. All rights reserved.