|
| $accessKey |
|
const | GZIP_UA = " (gzip)" |
|
|
| $baseComponent = null |
|
| $canGzip = null |
|
| $expectedClass |
|
| $expectedRaw = false |
|
| $path |
|
| $postBody |
|
| $queryParams |
|
| $requestHeaders |
|
| $requestMethod |
|
| $responseBody |
|
| $responseHeaders |
|
| $responseHttpCode |
|
| $userAgent |
|
◆ canGzip()
Google_Http_Request::canGzip |
( |
| ) |
|
Can this request accept a gzip response?
- Return values
-
◆ getBaseComponent()
Google_Http_Request::getBaseComponent |
( |
| ) |
|
Misc function that returns the base url component of the $url used by the OAuth signing class to calculate the base string.
- Return values
-
string | The base url component of the $url. |
◆ getCacheKey()
Google_Http_Request::getCacheKey |
( |
| ) |
|
Returns a cache key depending on if this was an OAuth signed request in which case it will use the non-signed url and access key to make this cache key unique per authenticated user, else use the plain request url.
- Return values
-
string | The md5 hash of the request cache key. |
◆ getExpectedClass()
Google_Http_Request::getExpectedClass |
( |
| ) |
|
Retrieve the expected class the response should expect.
- Return values
-
◆ getExpectedRaw()
Google_Http_Request::getExpectedRaw |
( |
| ) |
|
Expected raw response or not.
- Return values
-
boolean | expected raw response |
◆ getPostBody()
Google_Http_Request::getPostBody |
( |
| ) |
|
- Return values
-
string\$postBody | HTTP Request Body. |
◆ getQueryParams()
Google_Http_Request::getQueryParams |
( |
| ) |
|
Misc function that returns an array of the query parameters of the current url used by the OAuth signing class to calculate the signature.
- Return values
-
array | Query parameters in the query string. |
◆ getRequestHeader()
Google_Http_Request::getRequestHeader |
( |
| $key | ) |
|
- Parameters
-
- Return values
-
array|boolean | Returns the requested HTTP header or false if unavailable. |
◆ getRequestHeaders()
Google_Http_Request::getRequestHeaders |
( |
| ) |
|
- Return values
-
array\$headers | HTTP Request Headers. |
◆ getRequestMethod()
Google_Http_Request::getRequestMethod |
( |
| ) |
|
- Return values
-
string\$method | HTTP Request Method. |
◆ getResponseBody()
Google_Http_Request::getResponseBody |
( |
| ) |
|
◆ getResponseHeader()
Google_Http_Request::getResponseHeader |
( |
| $key | ) |
|
- Parameters
-
- Return values
-
array|boolean | Returns the requested HTTP header or false if unavailable. |
◆ getResponseHeaders()
Google_Http_Request::getResponseHeaders |
( |
| ) |
|
- Return values
-
$responseHeaders | (array) HTTP Response Headers. |
◆ getResponseHttpCode()
Google_Http_Request::getResponseHttpCode |
( |
| ) |
|
- Return values
-
string | HTTP Response Code. |
◆ getUrl()
Google_Http_Request::getUrl |
( |
| ) |
|
- Return values
-
string\$url | The request URL. |
◆ getUserAgent()
Google_Http_Request::getUserAgent |
( |
| ) |
|
◆ setBaseComponent()
Google_Http_Request::setBaseComponent |
( |
| $baseComponent | ) |
|
Set the base URL that path and query parameters will be added to.
- Parameters
-
◆ setExpectedClass()
Google_Http_Request::setExpectedClass |
( |
| $class | ) |
|
Set the class the response to this request should expect.
- Parameters
-
$class | string the class name |
◆ setPostBody()
Google_Http_Request::setPostBody |
( |
| $postBody | ) |
|
- Parameters
-
string | $postBody | the postBody to set |
◆ setQueryParam()
Google_Http_Request::setQueryParam |
( |
| $key, |
|
|
| $value ) |
Set a new query parameter.
- Parameters
-
$key | - string to set, does not need to be URL encoded |
$value | - string to set, does not need to be URL encoded |
◆ setRequestHeaders()
Google_Http_Request::setRequestHeaders |
( |
| $headers | ) |
|
- Parameters
-
array | $headers | The HTTP request headers to be set and normalized. |
◆ setRequestMethod()
Google_Http_Request::setRequestMethod |
( |
| $method | ) |
|
- Parameters
-
string | $method | Set he HTTP Method and normalize it to upper-case, as required by HTTP. |
◆ setResponseBody()
Google_Http_Request::setResponseBody |
( |
| $responseBody | ) |
|
- Parameters
-
string | $responseBody | The HTTP response body. |
◆ setResponseHeaders()
Google_Http_Request::setResponseHeaders |
( |
| $headers | ) |
|
- Parameters
-
array | $headers | The HTTP response headers to be normalized. |
◆ setResponseHttpCode()
Google_Http_Request::setResponseHttpCode |
( |
| $responseHttpCode | ) |
|
- Parameters
-
int | $responseHttpCode | HTTP Response Code. |
◆ setUrl()
Google_Http_Request::setUrl |
( |
| $url | ) |
|
◆ setUserAgent()
Google_Http_Request::setUserAgent |
( |
| $userAgent | ) |
|
Set the User-Agent Header.
- Parameters
-
string | $userAgent | The User-Agent. |
◆ toBatchString()
Google_Http_Request::toBatchString |
( |
| $id | ) |
|
- Parameters
-
- Return values
-
string | A string representation of the HTTP Request. |
The documentation for this class was generated from the following file:
- lib/google/src/Google/Http/Request.php