arsd.http

Old version of my http implementation.

I no longer work on this, use http2.d instead.

Members

Classes

HttpClient
class HttpClient

HttpClient keeps cookies, location, and some other state to reuse connections, when possible, like a web browser.

Functions

doHttpRequestOnHelpers
HttpResponse doHttpRequestOnHelpers(void delegate(string) write, char[] delegate() read, string method, string uri, const(ubyte)[] content = null, string[string] cookies = null, string[] headers = null, bool https = false)

Executes a generic http request, returning the full result. The correct formatting of the parameters are the caller's responsibility. Content-Length is added automatically, but YOU must give Content-Type!

get
string get(string url, string[string] cookies = null)

Gets a textual document, ignoring headers. Throws on non-text or error.

Suggestion Box / Bug Report