Request

Constructors

this
this()
Undocumented in source.

Members

Functions

accept
Request accept(string contentType)

Indicate the type of content that should be returned by the server.

acceptJson
Request acceptJson(string contentType)

Indicate that JSON should be returned by the server.

asForm
Request asForm()

Indicate the request contains form parameters.

asJson
Request asJson()

Indicate the request contains JSON.

asMultipart
Request asMultipart()

Indicate the request is a multi-part form request.

attach
Request attach(string name, string filename, string[string] headers)
Undocumented in source. Be warned that the author may not have intended to support it.
bodyFormat
Request bodyFormat(string value)

Specify the body format of the request.

contentType
Request contentType(string value)

Specify the request's content type.

del
Response del(string url)
Undocumented in source. Be warned that the author may not have intended to support it.
del
Response del(string url, string[string] data)
Undocumented in source. Be warned that the author may not have intended to support it.
del
Response del(string url, JSONValue json)
Undocumented in source. Be warned that the author may not have intended to support it.
del
Response del(string url, string contentType, const(ubyte)[] content)
Undocumented in source. Be warned that the author may not have intended to support it.
del
Response del(string url, HttpBody httpBody)
Undocumented in source. Be warned that the author may not have intended to support it.
formData
Request formData(string[string] data)
Undocumented in source. Be warned that the author may not have intended to support it.
get
Response get(string url)
Undocumented in source. Be warned that the author may not have intended to support it.
patch
Response patch(string url)
Undocumented in source. Be warned that the author may not have intended to support it.
patch
Response patch(string url, string[string] data)
Undocumented in source. Be warned that the author may not have intended to support it.
patch
Response patch(string url, JSONValue json)
Undocumented in source. Be warned that the author may not have intended to support it.
patch
Response patch(string url, string contentType, const(ubyte)[] content)
Undocumented in source. Be warned that the author may not have intended to support it.
patch
Response patch(string url, HttpBody httpBody)
Undocumented in source. Be warned that the author may not have intended to support it.
post
Response post(string url)
Undocumented in source. Be warned that the author may not have intended to support it.
post
Response post(string url, string[string] data)
Undocumented in source. Be warned that the author may not have intended to support it.
post
Response post(string url, JSONValue json)
Undocumented in source. Be warned that the author may not have intended to support it.
post
Response post(string url, string contentType, const(ubyte)[] content)
Undocumented in source. Be warned that the author may not have intended to support it.
post
Response post(string url, HttpBody httpBody)
Undocumented in source. Be warned that the author may not have intended to support it.
put
Response put(string url)
Undocumented in source. Be warned that the author may not have intended to support it.
put
Response put(string url, string[string] data)
Undocumented in source. Be warned that the author may not have intended to support it.
put
Response put(string url, JSONValue json)
Undocumented in source. Be warned that the author may not have intended to support it.
put
Response put(string url, string contentType, const(ubyte)[] content)
Undocumented in source. Be warned that the author may not have intended to support it.
put
Response put(string url, HttpBody httpBody)
Undocumented in source. Be warned that the author may not have intended to support it.
retry
Request retry(int timers, Duration delay)
Undocumented in source. Be warned that the author may not have intended to support it.
timeout
Request timeout(Duration dur)
Undocumented in source. Be warned that the author may not have intended to support it.
withCookies
Request withCookies(Cookie[] cookies)
Undocumented in source. Be warned that the author may not have intended to support it.
withHeaders
Request withHeaders(string[string] headers)
Undocumented in source. Be warned that the author may not have intended to support it.
withToken
Request withToken(string value, string type)

Specify an authorization token for the request.

Meta