| @@ 223-230 (lines=8) @@ | ||
| 220 | * @param array $headers The HTTP response headers |
|
| 221 | * to be normalized. |
|
| 222 | */ |
|
| 223 | public function setResponseHeaders($headers) |
|
| 224 | { |
|
| 225 | $headers = Google_Utils::normalize($headers); |
|
| 226 | if ($this->responseHeaders) { |
|
| 227 | $headers = array_merge($this->responseHeaders, $headers); |
|
| 228 | } |
|
| 229 | ||
| 230 | $this->responseHeaders = $headers; |
|
| 231 | } |
|
| 232 | ||
| 233 | /** |
|
| @@ 341-347 (lines=7) @@ | ||
| 338 | * @param array $headers The HTTP request headers |
|
| 339 | * to be set and normalized. |
|
| 340 | */ |
|
| 341 | public function setRequestHeaders($headers) |
|
| 342 | { |
|
| 343 | $headers = Google_Utils::normalize($headers); |
|
| 344 | if ($this->requestHeaders) { |
|
| 345 | $headers = array_merge($this->requestHeaders, $headers); |
|
| 346 | } |
|
| 347 | $this->requestHeaders = $headers; |
|
| 348 | } |
|
| 349 | ||
| 350 | /** |
|