requests

Undocumented in source.

Modules

base
module requests.base
Undocumented in source.
ftp
module requests.ftp
Undocumented in source.
http
module requests.http
Undocumented in source.
streams
module requests.streams
Undocumented in source.
uri
module requests.uri
Undocumented in source.
utils
module requests.utils
Undocumented in source.

Public Imports

requests.http
public import requests.http;
Undocumented in source.
requests.ftp
public import requests.ftp;
Undocumented in source.
requests.streams
public import requests.streams;
Undocumented in source.
requests.base
public import requests.base;
Undocumented in source.
requests.uri
public import requests.uri;
Undocumented in source.

Members

Functions

getContent
auto ref getContent(string url)

Call GET, and return response content. This is the simplest case, when all you need is the response body and have no parameters.

getContent
auto ref getContent(string url, string[string] args)

Call GET, and return response content. args = stringstring fo query parameters.

getContent
auto ref getContent(string url, QueryParam[] args)

Call GET, and return response content. args = QueryParam[] of parameters.

getContent
auto ref getContent(string url, A args)

Call GET, and return response content. args = variadic args to supply parameter names and values.

postContent
auto postContent(string url, A args)

Call post and return response content.

queryParams
auto queryParams(A args)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

Request
struct Request

This is simplest interface to both http and ftp protocols. Request has methods get, post and exec which routed to proper concrete handler (http or ftp, etc). To enable some protocol-specific featutes you have to use protocol interface directly (see docs for HTTPRequest or FTPRequest)

Meta