Basic Authentication provider
Provides a handler for Basic HTTP authentication via the Authorization header.
| package | Requests |
|---|---|
| subpackage | Authentication |
__construct(array|null $args = null)
arraynullArray of user and password. Must have exactly two elements
\Requests_Exception |
On incorrect number of arguments (`authbasicbadargs`) |
|---|
curl_before_send(resource $handle)
resourcecURL resource
fsockopen_header(string $out)
stringHTTP header string
getAuthString() : string
stringregister(\Requests_Hooks $hooks)
$pass : string
$user : string