Response
class Response extends Response
Methods
setBody(mixed $body)
Set the body content of the response.
static RedirectResponse
redirect(string $location, int $code = 302, array $headers = [])
Create a redirect response.
Details
at line 11
setBody(mixed $body)
Set the body content of the response.
at line 23
static RedirectResponse
redirect(string $location, int $code = 302, array $headers = [])
Create a redirect response.
at line 39
static Response|RedirectResponse
parse(mixed $response)
Parse a response object and return a formatted HTTP response.