Skip to content

v0.5.0 Change headers type to binary and preserve headers case

Compare
Choose a tag to compare
@tank-bohr tank-bohr released this 03 Apr 15:16
· 12 commits to master since this release
24312ee

Changes

  • Lowercase method atoms
  • Use binaries both for header names and values
  • Introduce raw_headers that preserve headers case and order. erlang/otp#2466 allows keeping headers case
  • Some documentation updates
  • Update deps

Breaking changes

  • bookish_spork_request:headers/1 now returns a map with binaries for both keys and values instead of erlang stings
  • bookish_spork_request:header/2 returns binary instead of string