You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGES.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,14 @@
8
8
stack overflow happens in the XHR completion handler (mefyl #762).
9
9
- lwt_jsoo: Add test suite (mefyl #764).
10
10
11
-
- Cohttp.Header: new implementation (@lyrm#747)
11
+
- Cohttp.Header: new implementation (lyrm #747)
12
12
13
13
+ New implementation of Header modules using an associative list instead of a map, with one major semantic change (function ```get```, see below), and some new functions (```clean_dup```, ```get_multi_concat```)
14
14
+ More Alcotest tests as well as fuzzing tests for this particular module.
**Breaking** the headers are no-longer lowercased when parsed, the headers key comparison is case insensitive instead.
18
+
16
19
### Purpose
17
20
18
21
The new header implementation uses an associative list instead of a map to represent headers and is focused on predictability and intuitivity: except for some specific and documented functions, the headers are always kept in transmission order, which makes debugging easier and is also important for [RFC7230§3.2.2](https://tools.ietf.org/html/rfc7230#section-3.2.2) that states that multiple values of a header must be kept in order.
@@ -38,6 +41,7 @@
38
41
39
42
+```clean_dup``` enables the user to clean headers that follows the {{:https://tools.ietf.org/html/rfc7230#section-3.2.2} RFC7230§3.2.2} (no duplicate, except ```set-cookie```)
40
43
+```get_multi_concat``` has been added to get a result similar to the previous ```get``` function.
44
+
- Cohttp.Header: optimize internal of cohttp.headers (mseri #778)
0 commit comments