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.
|
io.netty.handler.codec.http2 |
Handlers for sending and receiving HTTP/2 frames.
|
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 |
DefaultHttpRequest.setMethod(HttpMethod method) |
HttpRequest |
HttpRequest.setMethod(HttpMethod method)
Set the
HttpMethod of this HttpRequest . |
HttpRequest |
DefaultHttpRequest.setProtocolVersion(HttpVersion version) |
HttpRequest |
HttpRequest.setProtocolVersion(HttpVersion version) |
HttpRequest |
DefaultHttpRequest.setUri(String uri) |
HttpRequest |
HttpRequest.setUri(String uri)
Set the requested URI (or alternatively, path)
|
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(ChannelHandlerContext ctx,
HttpRequest msg,
List<Object> out) |
protected void |
HttpRequestEncoder.encodeInitialLine(ByteBuf buf,
HttpRequest request) |
protected HttpResponse |
HttpServerExpectContinueHandler.rejectResponse(HttpRequest request)
Returns the appropriate 4XX
HttpResponse for the given HttpRequest . |
Collection<CharSequence> |
HttpClientUpgradeHandler.UpgradeCodec.setUpgradeHeaders(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 |
HttpDataFactory.cleanRequestHttpData(HttpRequest request)
Remove all InterfaceHttpData from virtual File storage from clean list for the request
|
void |
DefaultHttpDataFactory.cleanRequestHttpData(HttpRequest request) |
void |
HttpDataFactory.cleanRequestHttpDatas(HttpRequest request)
Deprecated.
Use
HttpDataFactory.cleanRequestHttpData(HttpRequest) instead. |
void |
DefaultHttpDataFactory.cleanRequestHttpDatas(HttpRequest request) |
Attribute |
HttpDataFactory.createAttribute(HttpRequest request,
String name) |
Attribute |
DefaultHttpDataFactory.createAttribute(HttpRequest request,
String name) |
Attribute |
HttpDataFactory.createAttribute(HttpRequest request,
String name,
long definedSize) |
Attribute |
DefaultHttpDataFactory.createAttribute(HttpRequest request,
String name,
long definedSize) |
Attribute |
HttpDataFactory.createAttribute(HttpRequest request,
String name,
String value) |
Attribute |
DefaultHttpDataFactory.createAttribute(HttpRequest request,
String name,
String value) |
FileUpload |
HttpDataFactory.createFileUpload(HttpRequest request,
String name,
String filename,
String contentType,
String contentTransferEncoding,
Charset charset,
long size) |
FileUpload |
DefaultHttpDataFactory.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 |
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)
|
void |
DefaultHttpDataFactory.removeHttpDataFromClean(HttpRequest request,
InterfaceHttpData data) |
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 |
---|---|
ChannelFuture |
WebSocketServerHandshaker.handshake(Channel channel,
HttpRequest req)
Performs the opening handshake.
|
ChannelFuture |
WebSocketServerHandshaker.handshake(Channel channel,
HttpRequest req,
HttpHeaders responseHeaders,
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(ChannelHandlerContext ctx,
HttpRequest request)
This is a method exposed to perform fail-fast checks of user-defined http types.
|
Modifier and Type | Method and Description |
---|---|
static HttpRequest |
HttpConversionUtil.toHttpRequest(int streamId,
Http2Headers http2Headers,
boolean validateHttpHeaders)
Create a new object to contain the request data.
|
Modifier and Type | Method and Description |
---|---|
Collection<CharSequence> |
Http2ClientUpgradeCodec.setUpgradeHeaders(ChannelHandlerContext ctx,
HttpRequest upgradeRequest) |
Copyright © 2008–2024 The Netty Project. All rights reserved.