[ Index ] |
PHP Cross Reference of YOURLS |
[Source view] [Print] [Project Stats]
Basic Authentication provider
File Size: | 103 lines (3 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
Basic:: (5 methods):
__construct()
register()
curl_before_send()
fsockopen_header()
getAuthString()
__construct($args = null) X-Ref |
Constructor since: 2.0 Throws an `InvalidArgument` exception. since: 2.0 Throws an `ArgumentCount` exception instead of the Requests base `Exception. param: array|null $args Array of user and password. Must have exactly two elements |
register(Hooks $hooks) X-Ref |
Register the necessary callbacks param: \WpOrg\Requests\Hooks $hooks Hook system |
curl_before_send(&$handle) X-Ref |
Set cURL parameters before the data is sent param: resource|\CurlHandle $handle cURL handle |
fsockopen_header(&$out) X-Ref |
Add extra headers to the request before sending param: string $out HTTP header string |
getAuthString() X-Ref |
Get the authentication string (user:pass) return: string |
Generated: Tue Jan 21 05:10:11 2025 | Cross-referenced by PHPXref 0.7.1 |