Signature
Section titled “Signature”public class HttpClientBuilderConstructors
Section titled “Constructors”HttpClientBuilder
Section titled “HttpClientBuilder”public HttpClientBuilder(String url)Parameters
Section titled “Parameters”url(String)
HttpClientBuilder
Section titled “HttpClientBuilder”public HttpClientBuilder(String url, HttpClientSettings httpClientSettings)Parameters
Section titled “Parameters”url(String)httpClientSettings(HttpClientSettings)
Methods
Section titled “Methods”public HttpClient build()Returns
Section titled “Returns”withBody
Section titled “withBody”public HttpClientBuilder withBody(HttpRequest.BodyPublisher bodyPublisher)Parameters
Section titled “Parameters”bodyPublisher(HttpRequest.BodyPublisher)
Returns
Section titled “Returns”withCookie
Section titled “withCookie”public HttpClientBuilder withCookie(String name, String value)Parameters
Section titled “Parameters”name(String)value(String)
Returns
Section titled “Returns”withHeader
Section titled “withHeader”public HttpClientBuilder withHeader(String name, String value)Parameters
Section titled “Parameters”name(String)value(String)
Returns
Section titled “Returns”withHeaders
Section titled “withHeaders”public HttpClientBuilder withHeaders(Map<String, String> headers)Parameters
Section titled “Parameters”headers(Map<String, String>)
Returns
Section titled “Returns”withHttpClientSettings
Section titled “withHttpClientSettings”public HttpClientBuilder withHttpClientSettings(Consumer<HttpClientSettings> consumer)Configures this request’s settings. For factory-created builders, configure transport options
such as the connect timeout and onClientCreating on the owning LiveClient before its first request.
Parameters
Section titled “Parameters”consumer(Consumer<HttpClientSettings>)
Returns
Section titled “Returns”withParam
Section titled “withParam”public HttpClientBuilder withParam(String name, String value)Parameters
Section titled “Parameters”name(String)value(String)
Returns
Section titled “Returns”withParams
Section titled “withParams”public HttpClientBuilder withParams(Map<String, String> parameters)Parameters
Section titled “Parameters”parameters(Map<String, String>)
Returns
Section titled “Returns”withUrl
Section titled “withUrl”public HttpClientBuilder withUrl(String url)Parameters
Section titled “Parameters”url(String)
Returns
Section titled “Returns”Source
Section titled “Source”Client/src/main/java/io/github/jwdeveloper/tiktok/client/http/HttpClientBuilder.java:31