5use Psr\Http\Message\ResponseInterface;
45 http_response_code(
$response->getStatusCode());
50 if (strtolower(
$key) ===
'set-cookie') {
52 header(
"$key: " . $header,
false);
63 $resource =
$response->getBody()->detach();
67 if (is_resource($resource)) {
71 }
catch (\Throwable $t) {
74 $sendStatus = fpassthru($resource);
81 if ($sendStatus ===
false) {
Class DefaultResponseSenderStrategy.
sendResponse(ResponseInterface $response)
Sends the rendered response to the client.
Interface ResponseSenderStrategy.