Skip to content

Conversation

tottoto
Copy link
Contributor

@tottoto tottoto commented Jan 27, 2024

Adds a helper method which encodes Header types to HeaderValue as HeaderExt trait. This would be useful as it is a frequently encountered procedure.

Copy link

@GlenDC GlenDC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

That said, I know it would be a breaking change, but honestly, why is this not directly in the trait? It would mean that the Header::encode method could be optional, and only to be implemented if the default logic of inserting the encoded header value would not be desired?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants