Function Request.addHeaders
Add headers to request
void addHeaders
(
const(string[string]) headers
);
Parameters
Name | Description |
---|---|
headers | headers to send. |
Example
rq = Request();
rq .keepAlive = true;
rq .addHeaders(["X-Header": "test"]);