ru.mail.jira.plugins.commons.HttpClient Maven / Gradle / Ivy
package ru.mail.jira.plugins.commons;
import kong.unirest.Unirest;
import kong.unirest.UnirestInstance;
public class HttpClient {
public static void init() {
Unirest.config()
.connectTimeout(10_000)
.socketTimeout(300_000)
.setObjectMapper(new JacksonObjectMapper());
}
public static UnirestInstance getPrimaryClient() {
return Unirest.primaryInstance();
}
}