Benign cargo Download

content_disposition.rs

Rust test marker or harnessOffice document file extension keyword (pptx)
SHA-2565eb338013471e3742b13f912bada8a785c33c197e81092be1fbf50944bd0330c
MaleculeMd₂(Pa)

Evidence

English function-word token "the" lines 1–4
1// # References
2//
3// "The Content-Disposition Header Field" https://www.ietf.org/rfc/rfc2183.txt
4// "The Content-Disposi …
multipart/form-data content type lines 4–7
4:92… /www.ietf.org/rfc/rfc6266.txt
5// "Returning Values from Forms: multipart/form-data" https://www.ietf.org/rfc/rfc7578.txt
6// Browser conformance tests at: http://greenbytes.de/tech/tc2231/
7// IANA assignment: …
imports header::ExtendedValue lines 7–17
7:38… rg/assignments/cont-disp/cont-disp.xhtml
8
9use header;
10use header::ExtendedValue;
11use header::{Header, IntoHeaderValue, Writer};
12use regex::Regex;
13
14use std::fmt::{self, Write};
15
16/// Split at the index of the first `needle` if it exists or at the end.
17fn split_once(haystack: &s …
imports header::HeaderValue lines 500–514
500:17… (|param| write!(f, "; {}", param))
501 .collect()
502 }
503}
504
505#[cfg(test)]
506mod tests {
507 use super::{ContentDisposition, DispositionParam, DispositionType};
508 use header::shared::Charset;
509 use header::{ExtendedValue, HeaderValue};
510 #[test]
511 fn test_from_raw_basic() {
512 assert!(ContentDisposition::from_raw(&HeaderValue::from_static("")).is_err());
513
514 …
Office document file extension keyword (pptx) lines 719–721
719:23… e::from_str("form-data; name=upload; filename=\"余固知謇謇之為患兮,忍而不能舍也.pptx\"").unwrap();
720 let a: ContentDisposition = ContentDisposition::from_raw(&a).unwrap();
721 let b = ContentDispositi …

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.