Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions benches/src/header_name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ fn make_all_known_headers() -> Vec<Vec<u8>> {
b"X-Frame-Options".to_vec(),
// common_non_standard_response
b"Content-Security-Policy".to_vec(),
Copy link
Contributor Author

@39zde 39zde Oct 14, 2024

Choose a reason for hiding this comment

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

what's the definition of a common non standard response in this context?

b"Cross-Origin-Embedder-Policy".to_vec(),
b"Cross-Origin-Opener-Policy".to_vec(),
b"Cross-Origin-Resource-Policy".to_vec(),
b"Refresh".to_vec(),
b"Status".to_vec(),
b"Timing-Allow-Origin".to_vec(),
Expand Down Expand Up @@ -238,6 +241,9 @@ static ALL_KNOWN_HEADERS: &[&str] = &[
"x-frame-options",
// common_non_standard_response
"content-security-policy",
"cross-origin-embedder-policy",
"cross-origin-opener-policy",
"cross-origin-resource-policy",
"refresh",
"status",
"timing-allow-origin",
Expand Down
1 change: 1 addition & 0 deletions benches/src/header_name2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const STANDARD_HEADERS_BY_SIZE: &[&str] = &[
"content-security-policy",
"sec-websocket-extensions",
"strict-transport-security",
"cross-origin-opener-policy",
"access-control-allow-origin",
"access-control-allow-headers",
"access-control-expose-headers",
Expand Down