Skip to content

v3.0.0

Choose a tag to compare

@kettanaito kettanaito released this 19 Mar 14:24

BREAKING CHANGES

  • The .getAllHeaders() method has been renamed to .all() (#12).

Features

  • Adds a new Headers.raw() method to return an object with raw header name/value pairs (#12).
  • Keeps the map of the raw headers internally to retrieve them as raw.

Bug fixes

  • Fixes an issue when looking up a header by name resulted in null being returned if there were more than 1 header (#10)

Internal

  • Reduces the amount of header name normalization happening when working with .append() and .delete() methods.