Skip to content

Conversation

@SickMcNugget
Copy link

Fixes #815.

This commit adds a new function: insert_inplace(), that takes in an &mut OwnedHeaders, and can insert headers into that reference without requiring reassignment.

The body of insert() has been deduplicated into insert_internal(), and the new functionality is also tested inside of test_headers().

This commit adds a new function insert_inplace(), that takes a mutable
reference to an OwnedHeaders, and can insert headers to that reference.

The body of insert() has been deduplicated into insert_internal(), and
the new functionality is also tested inside of test_headers().
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.

Inserting headers into &mut OwnedHeaders

1 participant