Example usage for io.netty.handler.proxy HttpProxyHandler HttpProxyHandler

List of usage examples for io.netty.handler.proxy HttpProxyHandler HttpProxyHandler

Introduction

In this page you can find the example usage for io.netty.handler.proxy HttpProxyHandler HttpProxyHandler.

Prototype

public HttpProxyHandler(SocketAddress proxyAddress, String username, String password, HttpHeaders headers,
            boolean ignoreDefaultPortsInConnectHostHeader) 

Source Link

Usage

From source file:io.gatling.http.client.proxy.HttpProxyServer.java

License:Apache License

@Override
public ProxyHandler newHandler() {
    return realm != null
            ? new HttpProxyHandler(securedAddress, realm.getUsername(), realm.getPassword(),
                    EmptyHttpHeaders.INSTANCE, true)
            : new HttpProxyHandler(securedAddress, EmptyHttpHeaders.INSTANCE, true);
}