Benign cargo Download

request.rs

imports http::Error as HttpErrorimports http::HeaderMap
SHA-256a91edfe5991949561746f1441464e2b0440f4888621e7b2086ad10fc6f7a537d
MaleculeMd(In₉)

Evidence

imports http::Error as HttpError lines 1–30
1use std::fmt::Write as FmtWrite;
2use std::io::Write;
3use std::time::Duration;
4use std::{fmt, mem};
5
6use actix::Addr;
7use bytes::{BufMut, Bytes, BytesMut};
8use cookie::{Cookie, CookieJar};
9use futures::Stream;
10use percent_encoding::{percent_encode, USERINFO_ENCODE_SET};
11use serde::Serialize;
12use serde_json;
13use serde_urlencoded;
14use url::Url;
15
16use super::connector::{ClientConnector, Connection};
17use super::pipeline::SendRequest;
18use body::Body;
19use error::Error;
20use header::{ContentEncoding, Header, IntoHeaderValue};
21use http::header::{self, HeaderName, HeaderValue};
22use http::{uri, Error as HttpError, HeaderMap, HttpTryFrom, Method, Uri, Version};
23use httpmessage::HttpMessage;
24use httprequest::HttpRequest;
25
26/// An HTTP Client Request
⋯4 lines
English function-word token "for" lines 68–75
68:39…
69 Connection(Connection),
70}
71
72impl Default for ClientRequest {
73 fn default() -> ClientRequest {
74 ClientRequest {
75 uri: …
English function-word token "the" lines 140–150
140:88… {
141 source.into()
142 }
143
144 /// Get the request URI
145 #[inline]
146 pub fn uri(&self) -> &Uri {
⋯4 lines
English function-word token "this" lines 218–227
218:12… f.buffer_capacity
219 }
220
221 /// Get body of this response
222 #[inline]
223 pub fn body(&self) -> &Body {
⋯4 lines
English function-word token "with" lines 229–234
229:29… o();
230 }
231
232 /// Extract body, replace it with `Empty`
233 pub(crate) fn replace_body(&mut self, body: Body) -> Body {
234 mem::replace( …

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.