Request.get

Creates a get request.

class Request
static
get
(
string path
,
string[string] headers = defaultHeaders
)

Examples

auto get = Request.get("/index.html", ["Host": "127.0.0.1"]);
assert(get.toString() == "GET /index.html HTTP/1.1\r\nHost: 127.0.0.1\r\n");

Meta