Web Features Learning Mode

What piece of code would you use to obtain an array of response headers for a given URL, indexed by their respective names?