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

ru.easydonate.easydonate4j.http.client.okhttp.OkHttpClientBuilder Maven / Gradle / Ivy

There is a newer version: 2.0.6
Show newest version
package ru.easydonate.easydonate4j.http.client.okhttp;

import org.jetbrains.annotations.NotNull;
import ru.easydonate.easydonate4j.http.client.AbstractHttpClientBuilder;
import ru.easydonate.easydonate4j.http.client.HttpClient;
import ru.easydonate.easydonate4j.http.client.SimpleTimeouts;

public class OkHttpClientBuilder extends AbstractHttpClientBuilder {

    @Override
    public @NotNull HttpClient create() {
        HttpClient.Timeouts timeouts = new SimpleTimeouts(connectTimeout, responseTimeout, readTimeout, writeTimeout);
        return new OkHttpClient(userAgent, timeouts);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy