src/main/java/com/ngrok/DefaultNgrokApiClient.java
public static WebClient newDefaultHttpClient() {
        final ClientFactory factory = ClientFactory.builder()
            .connectTimeout(Duration.ofSeconds(4))
            .idleTimeout(Duration.ofMinutes(2))
            .useHttp1Pipelining(false)
            .build();
        return WebClient.builder()
            .factory(factory)
            .responseTimeout(Duration.ofSeconds(30))
            .writeTimeout(Duration.ofSeconds(1))
            .build();
    }
/**
     * Creates a new default Armeria {@link WebClient}.
     *
     * @return a http client
     */
Creates a new default Armeria  WebClient.
@return a http client
Creates a new default Armeria WebClient . @return a http client
public static WebClient newDefaultHttpClient() {
        final ClientFactory factory = ClientFactory.builder()
            .connectTimeout(Duration.ofSeconds(4))
            .idleTimeout(Duration.ofMinutes(2))
            .useHttp1Pipelining(false)
            .build();
        return WebClient.builder()
            .factory(factory)
            .responseTimeout(Duration.ofSeconds(30))
            .writeTimeout(Duration.ofSeconds(1))
            .build();
    }
public static WebClient newDefaultHttpClient ( ) { final ClientFactory factory = ClientFactory . builder ( ) . connectTimeout ( Duration . ofSeconds ( 4 ) ) . idleTimeout ( Duration . ofMinutes ( 2 ) ) . useHttp1Pipelining ( false ) . build ( ) ; return WebClient . builder ( ) . factory ( factory ) . responseTimeout ( Duration . ofSeconds ( 30 ) ) . writeTimeout ( Duration . ofSeconds ( 1 ) ) . build ( ) ; }
Creates a new default Armeria {@link WebClient}.
Creates a new default Armeria { @link WebClient } .