addOns/network/src/main/java/org/zaproxy/addon/network/ExtensionNetwork.java
/**
     * Creates a HTTP proxy.
     *
     * <p>The CONNECT requests are automatically handled as is the possible TLS upgrade. The
     * connection is automatically closed on recursive requests.
     *
     * @param initiator the initiator used for the {@code HttpSender}.
     * @param handler the message handler.
     * @return the server.
     * @throws NullPointerException if the given handler is {@code null}.
     * @since 0.1.0
     */
Creates a HTTP proxy.
The CONNECT requests are automatically handled as is the possible TLS upgrade. The
connection is automatically closed on recursive requests.

@param initiator the initiator used for the  HttpSender.
@param handler the message handler.
@return the server.
@throws NullPointerException if the given handler is  null.
Creates a HTTP proxy . The CONNECT requests are automatically handled as is the possible TLS upgrade . The connection is automatically closed on recursive requests . @param initiator the initiator used for the HttpSender . @param handler the message handler . @return the server . @throws NullPointerException if the given handler is null .
public Server createHttpProxy(int initiator, HttpMessageHandler handler) {
        Objects.requireNonNull(handler);
        HttpSender httpSender =
                new HttpSender(getModel().getOptionsParam().getConnectionParam(), true, initiator);
        return createHttpProxy(httpSender, handler);
    }
public Server createHttpProxy ( int initiator , HttpMessageHandler handler ) { Objects . requireNonNull ( handler ) ; HttpSender httpSender = new HttpSender ( getModel ( ) . getOptionsParam ( ) . getConnectionParam ( ) , true , initiator ) ; return createHttpProxy ( httpSender , handler ) ; }
Creates a HTTP proxy.
Creates a HTTP proxy .