Downgrade to mime-types 1.x to remain compatible with Ruby 1.8 and 1.9. Add some YARD details.
Store headers as a Hash instead of an Array. Make #to_s more efficient.