$resource
$resource : resource
Client resource object
HTTP response class
setUrl(string $url) : \Pop\Http\Client\AbstractClient
Set the URL
string | $url |
setMethod(string $method) : \Pop\Http\Client\Stream
Set the method
string | $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 |
setRequestHeader(string $name, string $value) : \Pop\Http\Client\AbstractClient
Set a request header
string | $name | |
string | $value |
setRequestHeaders(array $headers) : \Pop\Http\Client\AbstractClient
Set all request headers
array | $headers |
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 |