34 http_response_code(
$response->getStatusCode());
45 $resource =
$response->getBody()->detach();
49 if (is_resource($resource)) {
51 $sendStatus = fpassthru($resource);
58 if ($sendStatus ===
false) {
An exception for terminatinating execution or to throw for unit testing.
Class DefaultResponseSenderStrategy.
sendResponse(ResponseInterface $response)
Sends the rendered response to the client.
Interface ResponseSenderStrategy.
Representation of an outgoing, server-side response.