Lines Matching refs:response
57 $response = $handler->handle($request);
63 if (!$response->hasHeader('cache-control')) {
64 $response = $response->withHeader('cache-control', 'no-store');
68 $this->emitStatusLine($response);
69 $this->emitHeaders($response);
70 $this->emitBody($response);
73 return $response;
117 * @param ResponseInterface $response
119 private function emitStatusLine(ResponseInterface $response): void argument
121 http_response_code($response->getStatusCode());
125 $response->getProtocolVersion(),
126 $response->getStatusCode(),
127 $response->getReasonPhrase()
132 * @param ResponseInterface $response
134 private function emitHeaders(ResponseInterface $response): void argument
136 foreach ($response->getHeaders() as $name => $values) {
141 $response->getStatusCode()
148 * @param ResponseInterface $response
152 private function emitBody(ResponseInterface $response): void argument
154 $body = $response->getBody();