Edit File by line
/home/barbar84/public_h.../wp-inclu.../Requests
File: Transport.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Base HTTP transport
[2] Fix | Delete
*
[3] Fix | Delete
* @package Requests
[4] Fix | Delete
* @subpackage Transport
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
/**
[8] Fix | Delete
* Base HTTP transport
[9] Fix | Delete
*
[10] Fix | Delete
* @package Requests
[11] Fix | Delete
* @subpackage Transport
[12] Fix | Delete
*/
[13] Fix | Delete
interface Requests_Transport {
[14] Fix | Delete
/**
[15] Fix | Delete
* Perform a request
[16] Fix | Delete
*
[17] Fix | Delete
* @param string $url URL to request
[18] Fix | Delete
* @param array $headers Associative array of request headers
[19] Fix | Delete
* @param string|array $data Data to send either as the POST body, or as parameters in the URL for a GET/HEAD
[20] Fix | Delete
* @param array $options Request options, see {@see Requests::response()} for documentation
[21] Fix | Delete
* @return string Raw HTTP result
[22] Fix | Delete
*/
[23] Fix | Delete
public function request($url, $headers = array(), $data = array(), $options = array());
[24] Fix | Delete
[25] Fix | Delete
/**
[26] Fix | Delete
* Send multiple requests simultaneously
[27] Fix | Delete
*
[28] Fix | Delete
* @param array $requests Request data (array of 'url', 'headers', 'data', 'options') as per {@see Requests_Transport::request}
[29] Fix | Delete
* @param array $options Global options, see {@see Requests::response()} for documentation
[30] Fix | Delete
* @return array Array of Requests_Response objects (may contain Requests_Exception or string responses as well)
[31] Fix | Delete
*/
[32] Fix | Delete
public function request_multiple($requests, $options);
[33] Fix | Delete
[34] Fix | Delete
/**
[35] Fix | Delete
* Self-test whether the transport can be used
[36] Fix | Delete
* @return bool
[37] Fix | Delete
*/
[38] Fix | Delete
public static function test();
[39] Fix | Delete
}
[40] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function