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

Function parse_chunked

crates/openshell-supervisor-network/src/l7/rest.rs:2854–2861  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2852
2853 #[test]
2854 fn parse_chunked() {
2855 let headers =
2856 "POST /api HTTP/1.1\r\nHost: example.com\r\nTransfer-Encoding: chunked\r\n\r\n";
2857 match parse_body_length(headers).unwrap() {
2858 BodyLength::Chunked => {}
2859 other => panic!("Expected Chunked, got {other:?}"),
2860 }
2861 }
2862
2863 #[test]
2864 fn parse_no_body() {

Callers

nothing calls this directly

Calls 1

parse_body_lengthFunction · 0.85

Tested by

no test coverage detected