public static function toArray($headers, $options = [])
    {
        $data = [];
        foreach ($headers as $name => $header) {
            if (strtolower($name) === 'set-cookie') {
                foreach ($header->data() as $value) {
                    $data[] = $name . ': ' . $value;
                }
            } else {
                $data[] = $name . ': ' . $header->value();
            }
        }
        return $data;
    }