Method | Description | |
---|---|---|
addQueryParam ( $name, $value ) | ||
getBody ( ) | ||
getCookies ( ) | ||
getCookiesHeader ( ) | ||
getCookiesString ( ) | ||
getFragment ( ) | ||
getHeader ( string $name ) : string | Get header value | |
getHeaders ( ) : array | Return array of headers | |
getHost ( ) | ||
getHttpPassword ( ) | ||
getHttpUser ( ) | ||
getMaxTimeout ( ) | ||
getMethod ( ) : string | get the request method | |
getPath ( ) | ||
getPort ( ) | ||
getProxyPassword ( ) | ||
getProxyPort ( ) | ||
getProxyServer ( ) | ||
getProxyUser ( ) | ||
getQuery ( ) | ||
getScheme ( ) | ||
getUri ( ) | ||
getUrl ( ) | ||
setBody ( $body ) | ||
setCookies ( $cookies ) | ||
setHeader ( string $name, string $value ) | Set header value | |
setHttpPassword ( $pass ) | ||
setHttpUser ( $user ) | ||
setMaxTimeout ( $timeout ) | ||
setMethod ( string $method ) | Set if request method is GET or POST | |
setProxyServer ( string $server, string $port, string $user, string $password ) | In case request should be redirected through proxy server, set proxy server settings This function should be called after function setHost !!! | |
setUrl ( $url ) | ||
toString ( ) |
Method | Description | |
---|---|---|
initHeaders ( ) | ||
parseUrl ( ) |