()
| 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() { |
nothing calls this directly
no test coverage detected