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
The package uses pragmatic value objects to parse and serialize [HTTP Structured Fields][1] in PHP.
9
+
9
10
HTTP Structured fields are intended for use by specifications of new HTTP fields that wish to
10
11
use a common syntax that is more restrictive than traditional HTTP field values or could be
11
12
used to [retrofit current headers](https://www.ietf.org/id/draft-ietf-httpbis-retrofit-00.html) to have them compliant with the new syntax.
@@ -44,12 +45,12 @@ Documentation
44
45
45
46
There are three top-level types that an HTTP field can be defined as:
46
47
48
+
- Dictionaries,
47
49
- Lists,
48
-
- Dictionaries,
49
50
- and Items.
50
51
51
-
For each of those top-level types, the package provide a dedicated value object to parse the textual representation of the field
52
-
and to serialize the value object back to the textual representation.
52
+
For each of those top-level types, the package provide a dedicated value object to parse the textual
53
+
representation of the field and to serialize the value object back to the textual representation.
53
54
54
55
- Parsing is done via a common named constructor `fromHttpValue` which expects the Header or Trailer string value.
55
56
- Serializing is done via a common `toHttpValue` public method. The method returns the normalized string representation suited for HTTP textual representation.
0 commit comments