public class ProxyResponse extends Object
| Modifier and Type | Field and Description |
|---|---|
ProxyContext |
context |
io.netty.handler.codec.http.FullHttpRequest |
request |
io.netty.handler.codec.http.FullHttpResponse |
response |
| Constructor and Description |
|---|
ProxyResponse(ProxyContext context,
io.netty.handler.codec.http.FullHttpRequest request,
io.netty.handler.codec.http.FullHttpResponse response) |
| Modifier and Type | Method and Description |
|---|---|
ProxyResponse |
fake(int status,
String body) |
ProxyResponse |
header(String key,
Object value) |
ProxyResponse |
transform(String body) |
String |
uri() |
public final ProxyContext context
public final io.netty.handler.codec.http.FullHttpRequest request
public final io.netty.handler.codec.http.FullHttpResponse response
public ProxyResponse(ProxyContext context, io.netty.handler.codec.http.FullHttpRequest request, io.netty.handler.codec.http.FullHttpResponse response)
public String uri()
public ProxyResponse transform(String body)
public ProxyResponse fake(int status, String body)
public ProxyResponse header(String key, Object value)
Copyright © 2020. All rights reserved.