Benign cargo Download

mod.rs

Rust test marker or harness
SHA-256cc125b0d826b03bb38cbff197fbd5ea7dd9989999cbd4d2b91f155b01cb65cd2
MaleculeMd(Pa)

Evidence

imports bytes::BytesMut lines 1–27
1//! Pieces pertaining to the HTTP message protocol.
2use std::borrow::Cow;
3use std::fmt;
4
5use bytes::BytesMut;
6
7use header::{Connection, ConnectionOption, Expect};
8use header::Headers;
9use method::Method;
10use status::StatusCode;
11use uri::Uri;
12use version::HttpVersion;
13use version::HttpVersion::{Http10, Http11};
14
15pub use self::conn::{Conn, KeepAlive, KA};
16pub use self::body::{Body, TokioBody};
17pub use self::chunk::Chunk;
18
19mod body;
⋯8 lines
English function-word token "and" lines 30–33
30:13… ing Message head. Includes request/status line, and headers.
31#[derive(Clone, Debug, Default, PartialEq)]
32pub struct MessageHead<S> {
33 /// HTTP v …
English function-word token "for" lines 45–49
45:17… stLine(pub Method, pub Uri);
46
47impl fmt::Display for RequestLine {
48 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
49 write!(f, "{} …
English function-word token "this" lines 62–70
62:55… )
63 }
64}
65
66impl ResponseHead {
67 /// Converts this head's RawStatus into a StatusCode.
68 #[inline]
69 pub fn status(&self) -> StatusCode {
70 …
#[test] attribute lines 155–164
155:7… pe ParseResult<T> = ::Result<Option<(MessageHead<T>, usize)>>;
156
157#[test]
158fn test_should_keep_alive() {
159 let mut headers = Headers::new();
⋯5 lines

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.