[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/Requests/ -> Transport.php (summary)

Base HTTP transport

File Size: 41 lines (1 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Requests_Transport:: (3 methods):
  request()
  request_multiple()
  test()


Interface: Requests_Transport  - X-Ref

Base HTTP transport

request($url, $headers = array()   X-Ref
Perform a request

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 Requests::response()} for documentation
return: string Raw HTTP result

request_multiple($requests, $options)   X-Ref
Send multiple requests simultaneously

param: array $requests Request data (array of 'url', 'headers', 'data', 'options') as per {@see Requests_Transport::request}
param: array $options Global options, see {@see Requests::response()} for documentation
return: array Array of Requests_Response objects (may contain Requests_Exception or string responses as well)

test()   X-Ref
Self-test whether the transport can be used

return: bool



Generated : Thu Dec 15 08:20:01 2022 Cross-referenced by PHPXref