Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- `nhttp_headers:get_exact/2,3`, a case-sensitive `get/2,3` for lists
with lowercase names.
- The QUERY method (RFC 10008) on HTTP/1.1, HTTP/2 and HTTP/3.
`t:nhttp_lib:method/0` holds `query`, and `nhttp_lib:decode_method/1` and
`nhttp_lib:encode_method/1` map it to and from `QUERY`.
`nhttp_lib:is_safe/1` and `nhttp_lib:is_idempotent/1` give the method
properties, `nhttp_media_type` parses `Content-Type`, and
`nhttp_accept_query` encodes and parses the `Accept-Query` field.

### Changed

- `nhttp_lib:decode_method/1`, `nhttp_h1`, `nhttp_h2` and `nhttp_h3` return
`query` for the method `QUERY`. They returned `<<"QUERY">>`. A clause
that matches `<<"QUERY">>` no longer matches. A function with one clause
per method atom and a `when is_binary(M)` fallback raises
`function_clause` on `query`.

### Fixed

Expand Down
2 changes: 2 additions & 0 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@
nhttp_error,
nhttp_compress,
nhttp_cookie,
nhttp_media_type,
nhttp_accept_query,
nhttp_ws
]},
{<<"Protocol State Machines">>, [
Expand Down
Loading
Loading