$response->toArray() Converts all relevant response attributes to an associative array for debugging, testing or whatever. kirby/src/Http/Response.php#L306 $response->toArray(): array Return type array Parent class Kirby\Cms\Response inherited from Kirby\Http\Response