tag | 809291e3ebb177cc6e3d31a2095d6e1382b62f73 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Tue Jan 30 14:48:14 2024 -0800 |
object | 9775ff91465615da003006a2700058af515ffcb7 |
Platform Tools Release 34.0.5 (10900879)
commit | 9775ff91465615da003006a2700058af515ffcb7 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Oct 04 14:49:36 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Oct 04 14:49:36 2023 +0000 |
tree | 1bd715f4c15fc2210e843f1dbd6affb1c9488ec4 | |
parent | 0e1eb5fab8692a7bcc8a95f0b8692bad95844d5d [diff] | |
parent | 723f6fde0b942d16ee04692e13c1ad6bfff17dc2 [diff] |
Snap for 10900817 from 723f6fde0b942d16ee04692e13c1ad6bfff17dc2 to sdk-release Change-Id: I1b09b7eef555e4df4ad0b0f5afe0de4b7f87fb38
A push parser for the HTTP 1.x protocol. Avoids allocations. No copy. Fast.
Works with no_std
, simply disable the std
Cargo feature.
let mut headers = [httparse::EMPTY_HEADER; 64]; let mut req = httparse::Request::new(&mut headers); let buf = b"GET /index.html HTTP/1.1\r\nHost"; assert!(req.parse(buf)?.is_partial()); // a partial request, so we try again once we have more data let buf = b"GET /index.html HTTP/1.1\r\nHost: example.domain\r\n\r\n"; assert!(req.parse(buf)?.is_complete());
Licensed under either of
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.