$url
$url : string
URL
HTTP stream client class
$request : \Pop\Http\Client\Request
Client request object
$response : \Pop\Http\Client\Response
Client response object
setUrl(string $url) : \Pop\Http\Client\AbstractClient
Set the URL
string | $url |
setMethod(string $method, boolean $strict = true) : \Pop\Http\Client\Stream
Set the method
string | $method | |
boolean | $strict |
setRequest(\Pop\Http\Client\Request $request) : \Pop\Http\Client\AbstractClient
Set the request object
\Pop\Http\Client\Request | $request |
getRequest() : \Pop\Http\Client\Request
Get the request object
request() : \Pop\Http\Client\Request
Get the request object (alias method)
setResponse(\Pop\Http\Client\Response $response) : \Pop\Http\Client\AbstractClient
Set the response object
\Pop\Http\Client\Response | $response |
getResponse() : \Pop\Http\Client\Response
Get the response object
response() : \Pop\Http\Client\Response
Get the response object (alias method)
setField(string $name, mixed $value) : \Pop\Http\Client\AbstractClient
Set a field
string | $name | |
mixed | $value |
setFields(array $fields) : \Pop\Http\Client\AbstractClient
Set all fields
array | $fields |
removeField(string $name) : \Pop\Http\Client\AbstractClient
Remove a field
string | $name |
addRequestHeaders(array $headers) : \Pop\Http\Client\AbstractClient
Add request headers
array | $headers |
addRequestHeader(string $name, string $value) : \Pop\Http\Client\AbstractClient
Add request header
string | $name | |
string | $value |
createAsJson() : \Pop\Http\Client\AbstractClient
Create request as JSON
createUrlEncodedForm() : \Pop\Http\Client\AbstractClient
Create request as a URL-encoded form
createMultipartForm() : \Pop\Http\Client\AbstractClient
Create request as a multipart form
addResponseHeaders(array $headers) : \Pop\Http\Client\AbstractClient
Add response headers
array | $headers |
addResponseHeader(string $name, string $value) : \Pop\Http\Client\AbstractClient
Add response header
string | $name | |
string | $value |
open() : \Pop\Http\Client\Stream
Create and open stream resource
createContext() : \Pop\Http\Client\Stream
Create stream context
addContextOption(string $name, mixed $option) : \Pop\Http\Client\Stream
Add a context options
string | $name | |
mixed | $option |
addContextParam(string $name, mixed $param) : \Pop\Http\Client\Stream
Add a context parameter
string | $name | |
mixed | $param |
setContextOptions(array $options) : \Pop\Http\Client\Stream
Set the context options
array | $options |
setContextParams(array $params) : \Pop\Http\Client\Stream
Set the context parameters
array | $params |
setMode(string $mode) : \Pop\Http\Client\Stream
Set the mode
string | $mode |