public class HttpFiltersSourceAdapter extends Object implements HttpFiltersSource
HttpFiltersSource
.Constructor and Description |
---|
HttpFiltersSourceAdapter() |
Modifier and Type | Method and Description |
---|---|
HttpFilters |
filterRequest(io.netty.handler.codec.http.HttpRequest originalRequest) |
HttpFilters |
filterRequest(io.netty.handler.codec.http.HttpRequest originalRequest,
io.netty.channel.ChannelHandlerContext ctx)
Return an
HttpFilters object for this request if and only if we
want to filter the request and/or its responses. |
int |
getMaximumRequestBufferSizeInBytes()
Indicate how many (if any) bytes to buffer for incoming
HttpRequest s. |
int |
getMaximumResponseBufferSizeInBytes()
Indicate how many (if any) bytes to buffer for incoming
HttpResponse s. |
public HttpFilters filterRequest(io.netty.handler.codec.http.HttpRequest originalRequest)
public HttpFilters filterRequest(io.netty.handler.codec.http.HttpRequest originalRequest, io.netty.channel.ChannelHandlerContext ctx)
HttpFiltersSource
HttpFilters
object for this request if and only if we
want to filter the request and/or its responses.filterRequest
in interface HttpFiltersSource
public int getMaximumRequestBufferSizeInBytes()
HttpFiltersSource
HttpRequest
s. A value of 0 or less indicates that no buffering
should happen and that messages will be passed to the HttpFilters
request filtering methods chunk by chunk. A positive value will cause
LittleProxy to try an create a FullHttpRequest
using the data
received from the client, with its content already decompressed (in case
the client was compressing it). If the request size exceeds the maximum
buffer size, the request will fail.getMaximumRequestBufferSizeInBytes
in interface HttpFiltersSource
public int getMaximumResponseBufferSizeInBytes()
HttpFiltersSource
HttpResponse
s. A value of 0 or less indicates that no buffering
should happen and that messages will be passed to the HttpFilters
response filtering methods chunk by chunk. A positive value will cause
LittleProxy to try an create a FullHttpResponse
using the data
received from the server, with its content already decompressed (in case
the server was compressing it). If the response size exceeds the maximum
buffer size, the response will fail.getMaximumResponseBufferSizeInBytes
in interface HttpFiltersSource
Copyright © 2009–2018 LittleShoot. All rights reserved.