Lines Matching refs:response
457 * @param ResponseInterface $response
461 …function invokeMethod(RequestInterface $request, ResponseInterface $response, $sendResponse = true… argument
465 if (!$this->emit('beforeMethod:' . $method, [$request, $response])) return;
466 if (!$this->emit('beforeMethod', [$request, $response])) return;
469 $response->setHeader('X-Sabre-Version', Version::VERSION);
474 if (!$this->checkPreconditions($request, $response)) {
475 $this->sapi->sendResponse($response);
479 if ($this->emit('method:' . $method, [$request, $response])) {
480 if ($this->emit('method', [$request, $response])) {
491 if (!$this->emit('afterMethod:' . $method, [$request, $response])) return;
492 if (!$this->emit('afterMethod', [$request, $response])) return;
494 if ($response->getStatus() === null) {
498 $this->sapi->sendResponse($response);
499 $this->emit('afterResponse', [$request, $response]);
1291 * @param ResponseInterface $response
1294 function checkPreconditions(RequestInterface $request, ResponseInterface $response) { argument
1337 if ($etag) $response->setHeader('ETag', $etag);
1378 if ($etag) $response->setHeader('ETag', $etag);
1380 $response->setStatus(304);
1408 $response->setStatus(304);
1409 $response->setHeader('Last-Modified', HTTP\Util::toHTTPDate($lastMod));
1673 $response = new Xml\Element\Response(
1679 'value' => $response