(buf: &[u8])
| 691 | } |
| 692 | |
| 693 | fn header_end(buf: &[u8]) -> Option<usize> { |
| 694 | buf.windows(4) |
| 695 | .position(|w| w == b"\r\n\r\n") |
| 696 | .map(|idx| idx + 4) |
| 697 | } |
| 698 | |
| 699 | fn parse_token_request(buf: &[u8]) -> CapturedTokenRequest { |
| 700 | let header_end = header_end(buf).expect("request should contain header terminator"); |
no outgoing calls
no test coverage detected