Method |
Description |
|
__construct ( string $url ) |
|
|
addFilter ( $filter ) |
Adds an HTTP header to all requests |
|
addHeader ( $header ) |
Adds an HTTP header to all requests |
|
delete ( $path ) : Response |
Sends a DELETE request |
|
get ( $path ) : Response |
Sends a GET request |
|
getBaseUrl ( ) : Url |
Return the base url this Client was instanciated with |
|
post ( $path, $body, $contentType = null ) : Response |
Sends a POST request |
|
put ( $path, $body, $contentType = null ) : Response |
Sends a PUT request |
|
setConnectTimeoutMs ( $milliseconds ) |
Sets the connection timeout in milliseconds |
|
setHttpAuth ( $user, $pass ) |
Sets HTTP authentication credentials |
|
setHttpProxy ( $url ) |
Sets an HTTP proxy to use |
|
setIPFamily ( $family ) |
Sets the IP Family to use when making requests. |
|
setTimeout ( $seconds ) |
Sets the total timeout in seconds |
|
transport ( $transport = null ) |
|
|