MCPcopy Create free account
hub / github.com/awslabs/llrt / is_http_header_value

Function is_http_header_value

modules/llrt_fetch/src/headers.rs:678–686  ·  view source on GitHub ↗
(value: &str)

Source from the content-addressed store, hash-verified

676 })
677}
678
679fn normalize_header_value_inplace(ctx: &Ctx<'_>, text: &mut String) -> Result<()> {
680 let mut input = std::mem::take(text).into_bytes();
681 let mut read_idx = 0;
682 let mut write_idx = 0;
683
684 // Skip leading SP or HTAB
685 while read_idx < input.len() && (input[read_idx] == b' ' || input[read_idx] == b'\t') {
686 read_idx += 1;
687 }
688
689 // Store the last whitespace byte if any (space or tab)

Callers 4

appendMethod · 0.85
setMethod · 0.85
from_valueMethod · 0.85
from_arrayMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected