Menu

## ResponseHandler
in package

ResponseHandler.php : 8

### Table of Contents

$response : Response
$instance : ResponseHandler|null
__construct() : mixed
getInstance() : ResponseHandler
json() : ResponseHandler
make() : Response
  Retrieves the raw Response object. When this is used, headers, cookies, etc., will need to be attached manually.
makeNew() : ResponseHandler
  Creates a new Response object.
ok() : bool
render() : string

### Properties

#### $response

ResponseHandler.php : 13
`protected Response $response`

#### $instance

ResponseHandler.php : 11
`private static ResponseHandler|null $instance = null`

### Methods

#### __construct()

ResponseHandler.php : 23
`public __construct() : mixed`

##### Return values

mixed —

#### getInstance()

ResponseHandler.php : 15
`public static getInstance() : ResponseHandler`

##### Return values

ResponseHandler —

#### json()

ResponseHandler.php : 99
`public json([mixed $content = [] ][, int $status = 200 ]) : ResponseHandler`

##### Parameters

$content : mixed = []
$status : int = 200

##### Return values

ResponseHandler —

#### make()

ResponseHandler.php : 43

Retrieves the raw Response object. When this is used, headers, cookies, etc., will need to be attached manually.

`public make() : Response`

##### Return values

Response —

#### makeNew()

ResponseHandler.php : 32

Creates a new Response object.

`public makeNew() : ResponseHandler`

##### Return values

ResponseHandler —

#### ok()

ResponseHandler.php : 163
`public ok() : bool`

##### Return values

bool —

#### render()

ResponseHandler.php : 65
`public render(string $view[, array<string|int, mixed> $data = [] ][, mixed $status = 200 ][, mixed $headers = [] ]) : string`

##### Parameters

$view : string
$data : array<string|int, mixed> = []
$status : mixed = 200
$headers : mixed = []

##### Return values

string —

## Search results