MCPcopy Create free account
hub / github.com/bajrangCoder/setu / looks_like_json

Function looks_like_json

src/utils/curl_parser.rs:265–269  ·  view source on GitHub ↗
(text: &str)

Source from the content-addressed store, hash-verified

263 return RequestBody::Json(combined);
264 }
265
266 if content_type.contains("application/x-www-form-urlencoded")
267 || (combined.contains('=') && !combined.contains('\n'))
268 {
269 let mut map = HashMap::new();
270 for pair in combined.split('&') {
271 if let Some((k, v)) = split_once(pair, '=') {
272 map.insert(k.to_string(), v.to_string());

Callers 1

build_bodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected