$uri
$uri : string|\Horde_Url
Default URI if not specified for individual requests.
Mock HTTP request object.
send() : \Horde_Http_Response_Mock|NULL
Send this HTTP request
A response object or NULL in case no responses has been set.
setResponse(\Horde_Http_Response_Base $response)
Set the HTTP response(s) to be returned by this adapter. This overwrites any responses set before.
\Horde_Http_Response_Base | $response |
addResponse(string|\resourse $body, string $code = 200, string $uri = '', array $headers = array()) : \Horde_Http_Response_Mock
Adds a response to the stack of responses.
string|\resourse | $body | The response body content. |
string | $code | The response code. |
string | $uri | The request uri. |
array | $headers | Response headers. This can be one string representing the whole header or an array of strings with one string per header line. |
The response.