public interface Request extends BaseRequest
Each instance of this Request is associated with a corresponding response().
It would be in unfinished state which means current Request haven't been completely decoded(eg. only part of
the body is decoded, and waiting the left.) and it could be indicated by the return value of isEnded(). So
you so would see an unfinished result by calling aggregated() and multipart() before isEnded() returns true.
!Note: This class is not designed as thread-safe, please do not use it in multi-thread before isEnded()
returns true
| 限定符和类型 | 方法和说明 |
|---|---|
Aggregation |
aggregated()
Returns the aggregation result of this request.
|
io.netty.buffer.ByteBufAllocator |
alloc()
Get current allocator.
|
boolean |
isEnded()
Indicates whether current request is decoded completely.
|
MultiPart |
multipart()
Returns the multipart result of this request.
|
Response |
response()
Returns the corresponding
Response. |
cookies, getCookie, getParam, getParams, headers, localAddress, method, paramMap, path, query, rawMethod, remoteAddress, scheme, tcpSourceAddress, uri, versionMultiPart multipart()
This is only used when current request IS a multipart request and also multipart is expected.
!Note: You may see an unfinished result before isEnded() returns true.
empty.Aggregation aggregated()
This is only used when aggregation is expected.
!Note: You may see an unfinished result before isEnded() returns true.
empty.boolean isEnded()
true if request is decoded completely, otherwise false@Beta io.netty.buffer.ByteBufAllocator alloc()
Copyright © 2020. All rights reserved.