public class HttpResponseContext extends Object
Constructor and Description |
---|
HttpResponseContext(io.netty.handler.codec.http.HttpResponse httpResponse,
io.netty.channel.FileRegion fileRegion)
Http response context for wrapping useful information.
|
Modifier and Type | Method and Description |
---|---|
io.netty.channel.FileRegion |
getFileRegion()
Get the file region to read from the worker side.
|
io.netty.handler.codec.http.HttpResponse |
getHttpResponse()
Get the http response.
|
public HttpResponseContext(io.netty.handler.codec.http.HttpResponse httpResponse, io.netty.channel.FileRegion fileRegion)
httpResponse
- the http response to clientfileRegion
- the file region to read from the worker sideCopyright © 2023. All Rights Reserved.