The http\Client\Request class provides an HTTP message implementation tailored to represent a request message to be sent by the client.
See http\Client::enqueue().
None.
Create a new client request message to be enqueued and sent by http\Client.
void
http\Client\Request::__construct([string
$meth = NULL
[, string
$url = NULL
[, array
$headers = NULL
[, http\Message\Body $body = NULL
]]]])
Add querystring data.
http\Client\Request http\Client\Request::addQuery(mixed
$query_data)
Add specific SSL options.
http\Client\Request http\Client\Request::addSslOptions([array
$ssl_options = NULL
])
Extract the currently set "Content-Type" header.
Get priorly set options.
Retrieve the currently set querystring.
Retrieve priorly set SSL options.
Set the MIME content type of the request message.
http\Client\Request http\Client\Request::setContentType(string
$content_type)
Set client options.
http\Client\Request http\Client\Request::setOptions([array
$options = NULL
])
(Re)set the querystring.
http\Client\Request http\Client\Request::setQuery([mixed
$query_data = NULL
])
Specifically set SSL options.
http\Client\Request http\Client\Request::setSslOptions([array
$ssl_options = NULL
])