Skip to content

Conversation

@tottoto
Copy link
Contributor

@tottoto tottoto commented Jan 19, 2024

Header's encode method seems to convert the receiver to HeaderValue.

I: Iterator<Item = &'i HeaderValue>;

/// Encode this type to a `HeaderMap`.
/// Encode this type to a [`HeaderValue`].
Copy link
Member

Choose a reason for hiding this comment

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

Ah, well, sorta. The argument is a container of HeaderValues. Normally, it will be an private type that's like an Entry. But since it's generic, unit tests could just pass a Vec<_>.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a detailed document, which would be more helpful.

@seanmonstar seanmonstar merged commit 0f7c1c6 into hyperium:master Jan 20, 2024
@tottoto tottoto deleted the header-doc branch January 20, 2024 00:29
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