Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RELIC: Make Typed Headers Extensible for Custom Implementations #9

Open
klkucaj opened this issue Dec 9, 2024 · 0 comments
Open

RELIC: Make Typed Headers Extensible for Custom Implementations #9

klkucaj opened this issue Dec 9, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@klkucaj
Copy link
Collaborator

klkucaj commented Dec 9, 2024

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)

@klkucaj klkucaj added the enhancement New feature or request label Dec 9, 2024
@SandPod SandPod transferred this issue from serverpod/serverpod Dec 16, 2024
@SandPod SandPod moved this to Later 🥳 in Relic Roadmap Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Later 🥳
Development

No branches or pull requests

1 participant