Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytecodealliance/wasmtime
/ header
Method
header
crates/test-programs/src/http.rs:26–30 ·
view source on GitHub ↗
(&self, name: &str)
Source
from the content-addressed store, hash-verified
24
25
impl Response {
26
pub fn header(&self, name: &str) -> Option<&Vec<u8>> {
27
self.headers
28
.iter()
29
.find_map(|(k, v)| if k == name { Some(v) } else { None })
30
}
31
}
32
33
pub fn request(
Callers
7
handle_client
Function · 0.45
p2_cli_serve_echo_env
Function · 0.45
p2_cli_serve_header_replaces_request_header
Function · 0.45
p2_cli_serve_outgoing_body_config
Function · 0.45
p2_cli_serve_respect_pooling_options
Function · 0.45
p2_cli_serve_quick_rebind_allowed
Function · 0.45
p2_cli_serve_authority_and_scheme
Function · 0.45
Calls
1
iter
Method · 0.45
Tested by
6
p2_cli_serve_echo_env
Function · 0.36
p2_cli_serve_header_replaces_request_header
Function · 0.36
p2_cli_serve_outgoing_body_config
Function · 0.36
p2_cli_serve_respect_pooling_options
Function · 0.36
p2_cli_serve_quick_rebind_allowed
Function · 0.36
p2_cli_serve_authority_and_scheme
Function · 0.36