Function Request.addHeaders

Add headers to request

void addHeaders (
  const(string[string]) headers
);

Parameters

NameDescription
headers headers to send.

Example

rq = Request();
rq.keepAlive = true;
rq.addHeaders(["X-Header": "test"]);