Extensions #
This module provides the Extensions type, a dynamically-typed map for storing metadata on HTTP
requests and responses. It can be used by parsers, middleware, or other processing stages
to attach arbitrary typed data.
An ordering for Name keys used by Extensions.
Instances For
A dynamically typed map for optional metadata that can be attached to HTTP requests and responses. Extensions allow storing arbitrary typed data keyed by type name, useful for metadata such as socket information or custom processing data.
Instances For
Retrieves a value of type α from the extensions, if present.
Instances For
Inserts a value into the extensions, keyed by its type name. If a value of the same type already exists, it is replaced.
Instances For
Removes the value of type α from the extensions.
Instances For
Checks whether the extensions contain a value of type α.