public interface HttpProxyServer
Modifier and Type | Method and Description |
---|---|
void |
abort()
Stops the server and all related clones immediately, without waiting for traffic to stop.
|
HttpProxyServerBootstrap |
clone()
Clone the existing server, with a port 1 higher and everything else the
same.
|
int |
getConnectTimeout()
Returns the maximum time to wait, in milliseconds, to connect to a server.
|
int |
getIdleConnectionTimeout() |
InetSocketAddress |
getListenAddress()
Return the address on which this proxy is listening.
|
void |
setConnectTimeout(int connectTimeoutMs)
Sets the maximum time to wait, in milliseconds, to connect to a server.
|
void |
setIdleConnectionTimeout(int idleConnectionTimeout) |
void |
setThrottle(long readThrottleBytesPerSecond,
long writeThrottleBytesPerSecond)
Set the read/write throttle bandwidths (in bytes/second) for this proxy.
|
void |
stop()
Stops the server and all related clones.
|
int getIdleConnectionTimeout()
void setIdleConnectionTimeout(int idleConnectionTimeout)
int getConnectTimeout()
void setConnectTimeout(int connectTimeoutMs)
HttpProxyServerBootstrap clone()
Clone the existing server, with a port 1 higher and everything else the same. If the proxy was started with port 0 (JVM-assigned port), the cloned proxy will also use a JVM-assigned port.
The new server will share event loops with the original server. The event loops will use whatever name was given to the first server in the clone group. The server group will not terminate until the original server and all clones terminate.
void stop()
void abort()
InetSocketAddress getListenAddress()
void setThrottle(long readThrottleBytesPerSecond, long writeThrottleBytesPerSecond)
Set the read/write throttle bandwidths (in bytes/second) for this proxy.
readThrottleBytesPerSecond
- writeThrottleBytesPerSecond
- Copyright © 2009–2018 LittleShoot. All rights reserved.