All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.scribejava.httpclient.ahc.AhcHttpClientConfig Maven / Gradle / Ivy

There is a newer version: 8.3.3
Show newest version
package com.github.scribejava.httpclient.ahc;

import com.github.scribejava.core.httpclient.HttpClientConfig;
import org.asynchttpclient.AsyncHttpClientConfig;

public class AhcHttpClientConfig implements HttpClientConfig {

    private final AsyncHttpClientConfig clientConfig;

    public AhcHttpClientConfig(AsyncHttpClientConfig clientConfig) {
        this.clientConfig = clientConfig;
    }

    public AsyncHttpClientConfig getClientConfig() {
        return clientConfig;
    }

    @Override
    public AhcHttpClientConfig createDefaultConfig() {
        return defaultConfig();
    }

    public static AhcHttpClientConfig defaultConfig() {
        return new AhcHttpClientConfig(null);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy