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