Signature
Section titled “Signature”public class HttpClientFactoryFields
Section titled “Fields”liveClientSettings(LiveClientSettings, getter)
Constructors
Section titled “Constructors”HttpClientFactory
Section titled “HttpClientFactory”public HttpClientFactory(LiveClientSettings liveClientSettings)Parameters
Section titled “Parameters”liveClientSettings(LiveClientSettings)
Methods
Section titled “Methods”client
Section titled “client”public HttpClientBuilder client(String url)Parameters
Section titled “Parameters”url(String)
Returns
Section titled “Returns”getHttpClient
Section titled “getHttpClient”public synchronized java.net.http.HttpClient getHttpClient()Creates the owning LiveClient’s transport once, after its settings have been configured.
Returns
Section titled “Returns”java.net.http.HttpClient
public <T> HttpResponse<T> send(HttpRequest request, HttpResponse.BodyHandler<T> handler) throws IOException, InterruptedExceptionParameters
Section titled “Parameters”request(HttpRequest)handler(HttpResponse.BodyHandler<T>)
Returns
Section titled “Returns”HttpResponse<T>
Throws
Section titled “Throws”IOExceptionInterruptedException
public <T> HttpResponse<T> send(HttpRequest request, HttpResponse.BodyHandler<T> handler, ProxyData endpoint) throws IOException, InterruptedExceptionParameters
Section titled “Parameters”request(HttpRequest)handler(HttpResponse.BodyHandler<T>)endpoint(ProxyData)
Returns
Section titled “Returns”HttpResponse<T>
Throws
Section titled “Throws”IOExceptionInterruptedException
Source
Section titled “Source”Client/src/main/java/io/github/jwdeveloper/tiktok/client/http/HttpClientFactory.java:33