requests

HTTP client library, inspired by python-requests with goals:

  • small memory footprint
  • performance
  • simple, high level API
  • native D implementation

Modules

base
module requests.base
Undocumented in source.
connmanager
module requests.connmanager
Undocumented in source.
ftp
module requests.ftp
Undocumented in source.
http
module requests.http
Undocumented in source.
idna
module requests.idna
Undocumented in source.
pool
module requests.pool
Undocumented in source.
rangeadapter
module requests.rangeadapter
Undocumented in source.
request
module requests.request

* This module provides API using Request structure. * * Structure Request provides configuration, connection pooling, cookie * persistance. You can consider it as 'Session' and reuse it - all caches and settings will effective * for next requests.

server
module requests.server
Undocumented in source.
ssl_adapter
module requests.ssl_adapter
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.
requests.request
public import requests.request;
Undocumented in source.
requests.pool
public import requests.pool;
Undocumented in source.
requests.utils
public import requests.utils;
Undocumented in source.
requests.rangeadapter
public import requests.rangeadapter;
Undocumented in source.

Members

Functions

getContent
auto ref getContent(string url)

Call GET, and return response content.

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

Call GET, with parameters, and return response content.

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

Call GET, with parameters, and return response content.

getContent
auto ref getContent(string url, A args)

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

getContentByLine
auto getContentByLine(string url)

Call GET and lazily convert server response into InputRange of ubyte[], splitted by '\n'.

getContentByLine
auto getContentByLine(string url, string[string] args)

Call GET and lazily convert server response into InputRange of ubyte[], splitted by '\n'.

getContentByLine
auto getContentByLine(string url, QueryParam[] args)

Call GET and lazily convert server response into InputRange of ubyte[], splitted by '\n'.

getContentByLine
auto getContentByLine(string url, A args)

Call GET and lazily convert server response into InputRange of ubyte[], splitted by '\n'.

patchContent
auto patchContent(string url, A args)

Call patch and return response content.

postContent
auto postContent(string url, A args)

Call post and return response content.

postContentByLine
auto postContentByLine(string url, A args)

Call POST and lazily convert server response into InputRange of ubyte[], splitted by '\n'.

putContent
auto putContent(string url, A args)

Call put and return response content.

putContentByLine
auto putContentByLine(string url, A args)

Call PUT and lazily convert server response into InputRange of ubyte[], splitted by '\n'.

Meta