MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / parse_form_body

Function parse_form_body

crates/openshell-supervisor-network/src/token_grant.rs:719–727  ·  view source on GitHub ↗
(body: &str)

Source from the content-addressed store, hash-verified

717 }
718
719 fn parse_form_body(body: &str) -> HashMap<String, String> {
720 body.split('&')
721 .filter(|part| !part.is_empty())
722 .filter_map(|part| {
723 let (name, value) = part.split_once('=')?;
724 Some((decode_form_component(name), decode_form_component(value)))
725 })
726 .collect()
727 }
728
729 fn decode_form_component(value: &str) -> String {
730 let bytes = value.as_bytes();

Callers 1

parse_token_requestFunction · 0.85

Calls 2

decode_form_componentFunction · 0.85
is_emptyMethod · 0.45

Tested by

no test coverage detected