HttpClientRequest.Builder

Constructors

this
this()

A mutable map of tags, or an immutable empty map if we don't have any.

this
this(Request request)
Undocumented in source.

Members

Functions

addHeader
Builder addHeader(string name, string value)

Adds a header with {@code name} and {@code value}. Prefer this method for multiply-valued headers like "Cookie".

authorization
Builder authorization(AuthenticationScheme scheme, string token)
Undocumented in source. Be warned that the author may not have intended to support it.
build
HttpClientRequest build()

Attaches {@code tag} to the request using {@code type} as a key. Tags can be read from a request using {@link Request#tag}. Use null to remove any existing tag assigned for {@code type}.

caCert
Builder caCert(string caFile, string caPassword)
Undocumented in source. Be warned that the author may not have intended to support it.
cookieStoreEnabled
Builder cookieStoreEnabled(bool flag)
Undocumented in source. Be warned that the author may not have intended to support it.
cookies
Builder cookies(Cookie[] cookies)

Set the cookies.

del
Builder del(HttpBody requestBody)
Undocumented in source. Be warned that the author may not have intended to support it.
del
Builder del()
Undocumented in source. Be warned that the author may not have intended to support it.
enableTracing
Builder enableTracing(bool flag)
Undocumented in source. Be warned that the author may not have intended to support it.
get
Builder get()

Sets this request's {@code Cache-Control} header, replacing any cache control headers already present. If {@code cacheControl} doesn't define any directives, this clears this request's cache-control headers.

head
Builder head()
Undocumented in source. Be warned that the author may not have intended to support it.
header
Builder header(string name, string value)

Sets the header named {@code name} to {@code value}. If this request already has any headers with that name, they are all replaced.

headers
Builder headers(HttpFields headers)

Removes all headers on this builder and adds {@code headers}.

localServiceName
Builder localServiceName(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
method
Builder method(string method, HttpBody requestBody)
Undocumented in source. Be warned that the author may not have intended to support it.
mutualTls
Builder mutualTls(string certificate, string privateKey, string certPassword, string keyPassword)
Undocumented in source. Be warned that the author may not have intended to support it.
patch
Builder patch(HttpBody requestBody)
Undocumented in source. Be warned that the author may not have intended to support it.
post
Builder post(HttpBody requestBody)
Undocumented in source. Be warned that the author may not have intended to support it.
put
Builder put(HttpBody requestBody)
Undocumented in source. Be warned that the author may not have intended to support it.
removeHeader
Builder removeHeader(string name)

Removes all headers named {@code name} on this builder.

url
Builder url(HttpURI url)
Undocumented in source. Be warned that the author may not have intended to support it.
url
Builder url(string httpUri)

Sets the URL target of this request.

withTracer
Builder withTracer(Tracer t)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta