Open
Description
Original context: #3 (comment)
There are certain pieces of metadata that are commonly associated with requests but aren't part of HTTP itself, e.g.:
- Peer IP address
- TLS session details (certificates, ciphers, etc)
- HTTP URL router match results (original pattern, parameters, etc)
This kind of metadata can be inserted into requests as headers, but this has historically been a source of security and name collision issues and I hope we can offer a better alternative.
A few options to consider:
- Add methods for the most common bits of metadata directly to the request type
- Add a generic "metadata"/"extensions" map to the request type (like hyper)
- Add a separate "metadata"/"context" argument to
handle
Metadata
Metadata
Assignees
Labels
No labels