Benign cargo Download

response.rs

imports http
SHA-256358b0fa3e4d597e322fba60894a7fa18e9e914f3c36adf5544111bcdeb4dbaaf
MaleculeMd(In)

Evidence

imports http lines 1–16
1use std::fmt;
2#[cfg(feature = "compat")]
3use std::mem::replace;
4
5#[cfg(feature = "compat")]
6use http;
7
8use header::{Header, Headers};
9use proto::{MessageHead, ResponseHead, Body};
10use status::StatusCode;
11use version::HttpVersion;
12
13/// An HTTP Response
14pub struct Response<B = Body> {
15 version: HttpVersion,
16 headers: H …
English function-word token "the" lines 26–34
26:34…
27 Response::default()
28 }
29
30 /// Get the HTTP version of this response.
31 #[inline]
32 pub fn version(&self) -> HttpVersion { self.version }
33
34 /// Get …
English function-word token "and" lines 44–49
44:41… self.status }
45
46 /// Get the raw status code and reason.
47 ///
48 /// This method is only useful when inspecting the raw subject line from
49 …
English function-word token "for" lines 52–57
52:56… self.raw_status }
53
54 /// Set the `StatusCode` for this response.
55 #[inline]
56 pub fn set_status(&mut self, status: StatusCode) {
57 sel …

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.