Benign cargo Download

test_middleware.rs

Query value contains an encoded remote URLRust test marker or harness
SHA-2563a880b23b2b36015112973c5ca4c76ac0cd596e3794a079dc1eaa0c94ba5fc7d
MaleculeH(Cm)Md(Pa)

Evidence

imports actix_web::error::Error lines 4–19
4:6… n crate tokio_timer;
5
6use std::sync::atomic::{AtomicUsize, Ordering};
7use std::sync::Arc;
8use std::thread;
9use std::time::{Duration, Instant};
10
11use actix_web::error::{Error, ErrorInternalServerError};
12use actix_web::*;
13use futures::{future, Future};
14use tokio_timer::Delay;
15
16struct MiddlewareTest {
17 start: Arc<AtomicUsize>,
18 response: Arc<AtomicUsize>,
19 …
#[test] attribute lines 39–48
39:66… ing::Relaxed);
40 middleware::Finished::Done
41 }
42}
43
44#[test]
45fn test_middleware() {
46 let num1 = Arc::new(AtomicUsize::new(0));
47 let num2 = Arc::new(AtomicUsize::new(0));
48 let …
imports actix_web::middleware::session::CookieSessionBackend lines 983–989
983:4… use actix_web::middleware::session::{
984 CookieSessionBackend, RequestSession, SessionStorage,
985 };
986
987 const SIMPLE_NAME: &'static str = "simple";
988 const SIMPLE_PAYLOAD: &'static str = "kantan";
989 const COMP …
Query value contains an encoded remote URL lines 990–994
990:68… erate_204";
991 //TODO: investigate how to handle below input
992 //const COMPLEX_PAYLOAD: &'static str = "FJc%26continue_url%3Dhttp%253A%252F%252Fconnectivitycheck.gstatic.com%252Fgenerate_204";
993
994 let mut srv = …

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.