http
http copied to clipboard
HTTP primitives which can be shared by servers and clients.
This is an improvement over the original implementation because the previous behaviour was to discard the entire set of request cookies if a phantom cookie was encountered, which is probably...
See https://github.com/amphp/http-client/commit/fa7925363e6d5a0d0d337e2e6eb1affb93cf226e for for the problem. We could rename the method to something more clear like `changeHeaders`. Words like modify or alter may also be possible. We can't simply remove...
Useful when all you care about is splitting on commas, not generating key-value pairs. @kelunik Can you review the regex to make sure it makes sense.
Currently we're pretty strict about cookie parsing and return an empty cookie array if any cookie contains invalid data. Maybe we should change this, but it might result in security...
Add implementation of RFC 8941: new HTTP headers are going to make use of it (e.g. Priority in HTTP/3).
weight need An unsigned 8-bit integer