The OpenD Programming Language

arsd.http

OBSOLETE: Old version of my http implementation. Do not use this, instead use arsd.http2.

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.

HttpRequest
class HttpRequest
Undocumented in source.

Functions

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

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)

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

Structs

HttpRequestParameters
struct HttpRequestParameters
Undocumented in source.

Meta