Skip to content

Kirby 6.0.0

$response->toArray()

Converts all relevant response attributes to an associative array for debugging, testing or whatever.

$response->toArray(): array{type: string, charset: string, code: int, headers: array, body: string}

Return type

array{type: string, charset: string, code: int, headers: array, body: string}

Parent class

Kirby\Http\Response