Skip to content

Conversation

StellarisW
Copy link
Collaborator

No description provided.

danger: Danger,

#[cfg(feature = "fasthttp")]
mapped_keys: HashMap<HeaderName, Vec<HeaderName>>, // normalized_key -> original_keys
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

SmallVec

self.entries.clear();
self.extra_values.clear();
self.danger = Danger::Green;
#[cfg(feature = "fasthttp")]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

确保全部函数对齐

None
},
// Occupied
Some(self.insert_occupied(pos, value)),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

也需要删除其他同名key


#[cfg(feature = "fasthttp")]
{
let normalized_header_name = normalize_header_key_for_std_header(&header_name, true);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

逻辑冗余


let mut return_headers = vec![];

let original_keys = match self.mapped_keys.get(&normalized_key) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

调用 mapped_keys.remove

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.

1 participant