Skip to content

[v0.3] Request metadata #4

Open
@lann

Description

@lann

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions