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