[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
Base HTTP transport
File Size: | 45 lines (2 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
Transport:: (3 methods):
request()
request_multiple()
test()
request($url, $headers = [], $data = [], $options = []) X-Ref |
Perform a request return: string Raw HTTP result param: string $url URL to request param: array $headers Associative array of request headers param: string|array $data Data to send either as the POST body, or as parameters in the URL for a GET/HEAD param: array $options Request options, see {@see \WpOrg\Requests\Requests::response()} for documentation |
request_multiple($requests, $options) X-Ref |
Send multiple requests simultaneously return: array Array of \WpOrg\Requests\Response objects (may contain \WpOrg\Requests\Exception or string responses as well) param: array $requests Request data (array of 'url', 'headers', 'data', 'options') as per {@see \WpOrg\Requests\Transport::request()} param: array $options Global options, see {@see \WpOrg\Requests\Requests::response()} for documentation |
test($capabilities = []) X-Ref |
Self-test whether the transport can be used. The available capabilities to test for can be found in {@see \WpOrg\Requests\Capability}. return: bool Whether the transport can be used. param: array<string, bool> $capabilities Optional. Associative array of capabilities to test against, i.e. `['<capability>' => true]`. |
Generated : Sat Nov 23 08:20:01 2024 | Cross-referenced by PHPXref |