Benign cargo Download

lib.rs

Rust test marker or harnessimports server::Request
SHA-256a2888b1731aa19f54f91c5029bb091563420eb2d28e468e77cc5d57ea7d3da01
MaleculeMd₂(InPa)

Evidence

English function-word token "and" lines 1–6
1//! Actix web is a small, pragmatic, and extremely fast web framework
2//! for Rust.
3//!
4//! ```rust
5//! use actix_web::{server, App, Path, Responder};
6//! # use std::thr …
English function-word token "with" lines 15–19
15:18… new().resource("/{name}/{id}/index.html", |r| r.with(index))
16//! }).bind("127.0.0.1:8080")
17//! .unwrap()
18//! .run();
19//! # } …
#[cfg(test)] attribute lines 142–153
142:13… smallvec;
143#[macro_use]
144extern crate actix as actix_inner;
145
146#[cfg(test)]
147#[macro_use]
148extern crate serde_derive;
⋯5 lines
imports server::Request lines 200–233
200:6… od server;
201pub mod test;
202pub mod ws;
203pub use application::App;
204pub use body::{Binary, Body};
205pub use context::HttpContext;
206pub use error::{Error, ResponseError, Result};
207pub use extensions::Extensions;
208pub use extractor::{Form, Path, Query};
209pub use handler::{
210 AsyncResponder, Either, FromRequest, FutureResponse, Responder, State,
211};
212pub use httpmessage::HttpMessage;
213pub use httprequest::HttpRequest;
214pub use httpresponse::HttpResponse;
215pub use json::Json;
216pub use scope::Scope;
217pub use server::Request;
218
219pub mod actix {
220 //! Re-exports [actix's](https://docs.rs/actix/) prelude
221
222 extern crate actix;
223 pub use self::actix::actors::resolver;
224 pub use self::actix::actors::signal;
225 pub use self::actix::fut;
226 pub use self::actix::msgs;
227 pub use self::actix::prelude::*;
228 pub use self::actix::{run, spawn};
229}
230
231#[cfg(feature = "openssl")]
232pub(crate) const HAS_OPENSSL: bool = true;
233#[cfg(not(feature = "openss …
imports body::BodyStream lines 254–295
254:12… actix_web::dev::*;
255 //! ```
256
257 pub use body::BodyStream;
258 pub use context::Drain;
259 pub use extractor::{FormConfig, PayloadConfig};
260 pub use handler::{AsyncResult, Handler};
261 pub use httpmessage::{MessageBody, Readlines, UrlEncoded};
262 pub use httpresponse::HttpResponseBuilder;
263 pub use info::ConnectionInfo;
264 pub use json::{JsonBody, JsonConfig};
265 pub use param::{FromParam, Params};
266 pub use payload::{Payload, PayloadBuffer};
267 pub use pipeline::Pipeline;
268 pub use resource::Resource;
269 pub use route::Route;
270 pub use router::{ResourceDef, ResourceInfo, ResourceType, Router};
271}
272
273pub mod http {
274 //! Various HTTP related types
275
276 // re-exports
277 pub use modhttp::{Method, StatusCode, Version};
278
279 #[doc(hidden)]
280 pub use modhttp::{uri, Error, Extensions, HeaderMap, HttpTryFrom, Uri};
281
282 pub use cookie::{Cookie, CookieBuilder};
283
284 pub use helpers::NormalizePath;
285
286 /// Various http headers
287 pub mod header {
288 pub use header::*;
289 pub use header::{
290 Charset, ContentDisposition, DispositionParam, DispositionType, LanguageTag,
291 };
292 }
293 pub use header::ContentEncoding;
294 pub use httpresponse::ConnectionType;
295}

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.