setUrl()
setUrl(string $url) : \Pop\Http\Client\ClientInterface
Set the URL
Parameters
| string | $url |
HTTP client interface
setUrl(string $url) : \Pop\Http\Client\ClientInterface
Set the URL
| string | $url |
setMethod(string $method) : \Pop\Http\Client\ClientInterface
Set the method
| string | $method |
setField(string $name, mixed $value) : \Pop\Http\Client\ClientInterface
Set a field
| string | $name | |
| mixed | $value |
setFields(array $fields) : \Pop\Http\Client\ClientInterface
Set all fields
| array | $fields |
removeField(string $name) : \Pop\Http\Client\ClientInterface
Remove a field
| string | $name |
setRequestHeader(string $name, string $value) : \Pop\Http\Client\ClientInterface
Set a request header
| string | $name | |
| string | $value |
setRequestHeaders(array $headers) : \Pop\Http\Client\ClientInterface
Set all request headers
| array | $headers |
open() : \Pop\Http\Client\ClientInterface
Create and open the client resource