()
| 2843 | |
| 2844 | #[test] |
| 2845 | fn parse_content_length() { |
| 2846 | let headers = "POST /api HTTP/1.1\r\nHost: example.com\r\nContent-Length: 42\r\n\r\n"; |
| 2847 | match parse_body_length(headers).unwrap() { |
| 2848 | BodyLength::ContentLength(42) => {} |
| 2849 | other => panic!("Expected ContentLength(42), got {other:?}"), |
| 2850 | } |
| 2851 | } |
| 2852 | |
| 2853 | #[test] |
| 2854 | fn parse_chunked() { |
nothing calls this directly
no test coverage detected