Skip to content

Make Typed Headers Extensible for Custom Implementations #9

Closed

Description

@klkucaj

Is your feature request related to a problem? Please describe.
The framework currently provides predefined typed headers (e.g., AcceptEncodingHeader) for known HTTP headers. However, developers cannot extend or override these typed headers to provide their own implementations, limiting flexibility for certain use cases.

Describe the solution you'd like
Allow developers to implement or override typed headers by:

  • Making typed headers abstract by default.
  • Providing default implementations for common headers (e.g., AcceptEncodingHeader).
  • Ensuring the framework supports custom implementations seamlessly.

Describe alternatives you've considered

  • Continue relying solely on framework-provided typed headers, which simplifies the API but restricts extensibility.
  • Introduce a mechanism to dynamically register or replace typed headers at runtime, which adds complexity.

Additional context
This request is specific to typed headers (known HTTP headers with structure and validation) and does not relate to arbitrary custom headers like Company-ID. Allowing extensibility ensures the framework remains flexible without compromising its default functionality.

Feedback: serverpod/serverpod#2744 (comment)

Activity

  1. added
    enhancement
    on Dec 9, 2024
  2. moved this to Later 🥳 in Relic Roadmapon Dec 18, 2024
  3. moved this from Later 🥳 to Backlog in Relic Roadmapon Mar 25, 2025
  4. moved this from Backlog to Now 🔥 in Relic Roadmapon Mar 27, 2025
  5. self-assigned this
    on Mar 27, 2025
  6. changed the title [-]RELIC: Make Typed Headers Extensible for Custom Implementations[/-] [+]Make Typed Headers Extensible for Custom Implementations[/+] on Mar 27, 2025
  7. moved this from Now 🔥 to Done in Relic Roadmapon Apr 2, 2025
  8. moved this from Inbox 📫 to Done 🚀 in Serverpod Frameworkson Aug 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions