function Response::isEmpty
Is the response empty?
@final
2 calls to Response::isEmpty()
- BinaryFileResponse::prepare in vendor/
symfony/ http-foundation/ BinaryFileResponse.php - Prepares the Response before it is sent to the client.
- Response::prepare in vendor/
symfony/ http-foundation/ Response.php - Prepares the Response before it is sent to the client.
File
-
vendor/
symfony/ http-foundation/ Response.php, line 1257
Class
- Response
- Response represents an HTTP response.
Namespace
Symfony\Component\HttpFoundationCode
public function isEmpty() : bool {
return \in_array($this->statusCode, [
204,
304,
]);
}