Benign cargo Download

mod.rs

Rust test marker or harness
SHA-256967cf82c21366b555069c0b1a7c8eb0a2455195fa621b0ffdb8c7f8ad25bd18c
MaleculeMd(Pa)

Evidence

English function-word token "the" lines 1–7
1//! A Collection of Header implementations for common HTTP Headers.
2//!
3//! ## Mime
4//!
5//! Several header fields use MIME values for their contents. Keeping with the
6//! strongly-typed theme, the [mime](https://docs.rs/mime) crate
7//! is used, such as `Conten …
imports self::accept::Accept lines 7–33
7:47…
8#![cfg_attr(rustfmt, rustfmt_skip)]
9
10pub use self::accept_charset::AcceptCharset;
11//pub use self::accept_encoding::AcceptEncoding;
12pub use self::accept_language::AcceptLanguage;
13pub use self::accept::Accept;
14pub use self::allow::Allow;
15pub use self::cache_control::{CacheControl, CacheDirective};
16pub use self::content_disposition::{ContentDisposition, DispositionType, DispositionParam};
17pub use self::content_language::ContentLanguage;
18pub use self::content_range::{ContentRange, ContentRangeSpec};
19pub use self::content_type::ContentType;
20pub use self::date::Date;
21pub use self::etag::ETag;
22pub use self::expires::Expires;
23pub use self::if_match::IfMatch;
24pub use self::if_modified_since::IfModifiedSince;
25pub use self::if_none_match::IfNoneMatch;
26pub use self::if_range::IfRange;
27pub use self::if_unmodified_since::IfUnmodifiedSince;
28pub use self::last_modified::LastModified;
29//pub use self::range::{Range, ByteRangeSpec};
30
31#[doc(hidden)]
32#[macro_export]
33macro_rule …
#[cfg(test)] attribute lines 56–63
56:18… tm:ident{$($tf:item)*}) => {
57 #[allow(unused_imports)]
58 #[cfg(test)]
59 mod $tm{
60 use std::str;
61 use http::Method;
62 use $crate::header::*;
63 us …
#[test] attribute lines 72–82
72:15… ]
73macro_rules! test_header {
74 ($id:ident, $raw:expr) => {
75 #[test]
76 fn $id() {
77 use test;
⋯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.