public final class ProxyServer extends AbstractServerExample {
public static void main(final String[] args) {
int targetServerPort = startTargetServer();
final HttpClient<ByteBuf, ByteBuf> targetClient = HttpClient.newClient("127.0.0.1", targetServerPort);
HttpServer<ByteBuf, ByteBuf> server;
<BUG>server = HttpServer.newServer()
.start((serverReq, serverResp) -> {</BUG>
HttpClientRequest<ByteBuf, ByteBuf> clientReq =
targetClient.createRequest(serverReq.getHttpMethod(), serverReq.getUri());
Iterator<Entry<String, String>> serverReqHeaders = serverReq.headerIterator();

public final class ProxyServer extends AbstractServerExample {
public static void main(final String[] args) {
int targetServerPort = startTargetServer();
final HttpClient<ByteBuf, ByteBuf> targetClient = HttpClient.newClient("127.0.0.1", targetServerPort);
HttpServer<ByteBuf, ByteBuf> server;
server = HttpServer.newServer()
.enableWireLogging(LogLevel.DEBUG)
.start((serverReq, serverResp) -> {
HttpClientRequest<ByteBuf, ByteBuf> clientReq =
targetClient.createRequest(serverReq.getHttpMethod(), serverReq.getUri());
Iterator<Entry<String, String>> serverReqHeaders = serverReq.headerIterator();
