Request.authenticator

Set authenticator for http requests. v - Auth instance.

struct Request
@property
void
authenticator

Examples

import requests;
void main() {
    rq = Request();
    rq.authenticator = new BasicAuthentication("user", "passwd");
    rs = rq.get("http://httpbin.org/basic-auth/user/passwd");
}

Meta