软件包 | 描述 |
---|---|
io.netty.handler.codec.http |
编码器,解码器及其相关的HTTP消息类型。
|
io.netty.handler.codec.http.multipart |
HTTP多部分支持。
|
io.netty.handler.codec.http.websocketx |
Web Socket数据帧的编码器,解码器,握手及其相关消息类型。
|
io.netty.handler.codec.http2 |
用于发送和接收HTTP / 2帧的处理程序。
|
Modifier and Type | Interface and Description |
---|---|
interface |
FullHttpRequest
结合 HttpRequest 和FullHttpMessage ,所以请求是一个完整的 HTTP请求。
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultFullHttpRequest
默认实现 FullHttpRequest 。
|
class |
DefaultHttpRequest
默认的 HttpRequest 实现。
|
Modifier and Type | Method and Description |
---|---|
HttpRequest |
HttpRequest.setMethod(HttpMethod method)
设置此 HttpRequest 的HttpMethod 。
|
HttpRequest |
DefaultHttpRequest.setMethod(HttpMethod method) |
HttpRequest |
HttpRequest.setProtocolVersion(HttpVersion version) |
HttpRequest |
DefaultHttpRequest.setProtocolVersion(HttpVersion version) |
HttpRequest |
HttpRequest.setUri(java.lang.String uri)
设置请求的URI(或者路径)
|
HttpRequest |
DefaultHttpRequest.setUri(java.lang.String uri) |
Modifier and Type | Method and Description |
---|---|
protected HttpResponse |
HttpServerExpectContinueHandler.acceptMessage(HttpRequest request)
为 HttpRequest 产生一个HttpResponse ,它定义了一个期望值。
|
protected void |
HttpContentEncoder.decode(ChannelHandlerContext ctx, HttpRequest msg, java.util.List<java.lang.Object> out) |
protected void |
HttpRequestEncoder.encodeInitialLine(ByteBuf buf, HttpRequest request) |
protected HttpResponse |
HttpServerExpectContinueHandler.rejectResponse(HttpRequest request)
返回相应4XX HttpResponse 对于给定HttpRequest 。
|
java.util.Collection<java.lang.CharSequence> |
HttpClientUpgradeHandler.UpgradeCodec.setUpgradeHeaders(ChannelHandlerContext ctx, HttpRequest upgradeRequest)
设置升级请求所需的任何协议专用标头。
|
Modifier and Type | Method and Description |
---|---|
HttpRequest |
HttpPostRequestEncoder.finalizeRequest()
通过在请求中准备标题完成请求,并返回准备发送的请求。
|
Modifier and Type | Method and Description |
---|---|
void |
HttpDataFactory.cleanRequestHttpData(HttpRequest request)
从请求的清除列表中删除虚拟文件存储中的所有InterfaceHttpData
|
void |
DefaultHttpDataFactory.cleanRequestHttpData(HttpRequest request) |
void |
HttpDataFactory.cleanRequestHttpDatas(HttpRequest request)
|
void |
DefaultHttpDataFactory.cleanRequestHttpDatas(HttpRequest request) |
Attribute |
HttpDataFactory.createAttribute(HttpRequest request, java.lang.String name) |
Attribute |
DefaultHttpDataFactory.createAttribute(HttpRequest request, java.lang.String name) |
Attribute |
HttpDataFactory.createAttribute(HttpRequest request, java.lang.String name, long definedSize) |
Attribute |
DefaultHttpDataFactory.createAttribute(HttpRequest request, java.lang.String name, long definedSize) |
Attribute |
HttpDataFactory.createAttribute(HttpRequest request, java.lang.String name, java.lang.String value) |
Attribute |
DefaultHttpDataFactory.createAttribute(HttpRequest request, java.lang.String name, java.lang.String value) |
FileUpload |
HttpDataFactory.createFileUpload(HttpRequest request, java.lang.String name, java.lang.String filename, java.lang.String contentType, java.lang.String contentTransferEncoding, java.nio.charset.Charset charset, long size) |
FileUpload |
DefaultHttpDataFactory.createFileUpload(HttpRequest request, java.lang.String name, java.lang.String filename, java.lang.String contentType, java.lang.String contentTransferEncoding, java.nio.charset.Charset charset, long size) |
static boolean |
HttpPostRequestDecoder.isMultipart(HttpRequest request)
检查给定的请求是否是多部分请求
|
void |
HttpDataFactory.removeHttpDataFromClean(HttpRequest request, InterfaceHttpData data)
从干净的列表中删除给定的InterfaceHttpData(不会删除该文件,除非该文件在构建时仍是临时文件)
|
void |
DefaultHttpDataFactory.removeHttpDataFromClean(HttpRequest request, InterfaceHttpData data) |
Modifier and Type | Method and Description |
---|---|
ChannelFuture |
WebSocketServerHandshaker.handshake(Channel channel, HttpRequest req)
执行开始握手。
|
ChannelFuture |
WebSocketServerHandshaker.handshake(Channel channel, HttpRequest req, HttpHeaders responseHeaders, ChannelPromise promise)
执行打开握手当调用此方法必须不保留 HttpRequest 这是在过去。
|
WebSocketServerHandshaker |
WebSocketServerHandshakerFactory.newHandshaker(HttpRequest req)
实例一个新的握手
|
Modifier and Type | Method and Description |
---|---|
static HttpRequest |
HttpConversionUtil.toHttpRequest(int streamId, Http2Headers http2Headers, boolean validateHttpHeaders)
创建一个新的对象来包含请求数据。
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<java.lang.CharSequence> |
Http2ClientUpgradeCodec.setUpgradeHeaders(ChannelHandlerContext ctx, HttpRequest upgradeRequest) |
Copyright © 2008–2018 The Netty Project. All rights reserved.