Please sign in to comment.
Add res.headers method which returns a Hash of headers.
Hash key and value are both String. Each key has a single value so you can't extract exact value when a message has multiple headers like 'Set-Cookie'. Use header['Set-Cookie'] for that purpose. (It returns an Array always)
- Loading branch information...
Showing with 10 additions and 0 deletions.