mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-27 17:52:56 +01:00
84 lines
93 KiB
HTML
84 lines
93 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A service level request wrapper."><title>ServiceRequest in actix_web::dev - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-dd39b87e5fcfba68.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="actix_web" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (bdbbb6c6a 2024-05-26)" data-channel="nightly" data-search-js="search-d52510db62a78183.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-118b08c4c78b968e.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-df360f571f6edeae.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../../actix_web/index.html"><img src="https://actix.rs/img/logo.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../../actix_web/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2><a href="../../actix_web/index.html">actix_web</a><span class="version">4.6.0</span></h2></div><h2 class="location"><a href="#">ServiceRequest</a></h2><div class="sidebar-elems"><section><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.add_data_container">add_data_container</a></li><li><a href="#method.app_config">app_config</a></li><li><a href="#method.app_data">app_data</a></li><li><a href="#method.conn_data">conn_data</a></li><li><a href="#method.connection_info">connection_info</a></li><li><a href="#method.cookie">cookie</a></li><li><a href="#method.cookies">cookies</a></li><li><a href="#method.error_response">error_response</a></li><li><a href="#method.extract">extract</a></li><li><a href="#method.from_parts">from_parts</a></li><li><a href="#method.from_request">from_request</a></li><li><a href="#method.guard_ctx">guard_ctx</a></li><li><a href="#method.head">head</a></li><li><a href="#method.head_mut">head_mut</a></li><li><a href="#method.headers">headers</a></li><li><a href="#method.headers_mut">headers_mut</a></li><li><a href="#method.into_parts">into_parts</a></li><li><a href="#method.into_response">into_response</a></li><li><a href="#method.match_info">match_info</a></li><li><a href="#method.match_info_mut">match_info_mut</a></li><li><a href="#method.match_name">match_name</a></li><li><a href="#method.match_pattern">match_pattern</a></li><li><a href="#method.method">method</a></li><li><a href="#method.parts">parts</a></li><li><a href="#method.parts_mut">parts_mut</a></li><li><a href="#method.path">path</a></li><li><a href="#method.peer_addr">peer_addr</a></li><li><a href="#method.query_string">query_string</a></li><li><a href="#method.request">request</a></li><li><a href="#method.resource_map">resource_map</a></li><li><a href="#method.set_payload">set_payload</a></li><li><a href="#method.uri">uri</a></li><li><a href="#method.version">version</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Debug-for-ServiceRequest">Debug</a></li><li><a href="#impl-HttpMessage-for-ServiceRequest">HttpMessage</a></li><li><a href="#impl-Resource-for-ServiceRequest">Resource</a></li><li><a href="#impl-ServiceFactory%3CServiceRequest%3E-for-Route">ServiceFactory<ServiceRequest></a></li><li><a href="#impl-Transform%3CS,+ServiceRequest%3E-for-Compress">Transform<S, ServiceRequest></a></li><li><a href="#impl-Transform%3CS,+ServiceRequest%3E-for-DefaultHeaders">Transform<S, ServiceRequest></a></li><li><a href="#impl-Transform%3CS,+ServiceRequest%3E-for-ErrorHandlers%3CB%3E">Transform<S, ServiceRequest></a></li><li><a href="#impl-Transform%3CS,+ServiceRequest%3E-for-Logger">Transform<S, ServiceRequest></a></li><li><a href="#impl-Transform%3CS,+ServiceRequest%3E-for-NormalizePath">Transform<S, ServiceRequest></a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-RefUnwindSafe-for-ServiceRequest">!RefUnwindSafe</a></li><li><a href="#impl-Send-for-ServiceRequest">!Send</a></li><li><a href="#impl-Sync-for-ServiceRequest">!Sync</a></li><li><a href="#impl-UnwindSafe-for-ServiceRequest">!UnwindSafe</a></li><li><a href="#impl-Freeze-for-ServiceRequest">Freeze</a></li><li><a href="#impl-Unpin-for-ServiceRequest">Unpin</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E-for-T">From<T></a></li><li><a href="#impl-Instrument-for-T">Instrument</a></li><li><a href="#impl-Into%3CU%3E-for-T">Into<U></a></li><li><a href="#impl-Same-for-T">Same</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-T">TryInto<U></a></li><li><a href="#impl-VZip%3CV%3E-for-T">VZip<V></a></li><li><a href="#impl-WithSubscriber-for-T">WithSubscriber</a></li></ul></section><h2><a href="index.html">In actix_web::dev</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Struct <a href="../index.html">actix_web</a>::<wbr><a href="index.html">dev</a>::<wbr><a class="struct" href="#">ServiceRequest</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../src/actix_web/service.rs.html#75-78">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub struct ServiceRequest { <span class="comment">/* private fields */</span> }</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A service level request wrapper.</p>
|
||
<p>Allows mutable access to request’s internal structures.</p>
|
||
</div></details><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-ServiceRequest" class="impl"><a class="src rightside" href="../../src/actix_web/service.rs.html#80-329">source</a><a href="#impl-ServiceRequest" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_parts" class="method"><a class="src rightside" href="../../src/actix_web/service.rs.html#88-90">source</a><h4 class="code-header">pub fn <a href="#method.into_parts" class="fn">into_parts</a>(self) -> (<a class="struct" href="../struct.HttpRequest.html" title="struct actix_web::HttpRequest">HttpRequest</a>, <a class="enum" href="enum.Payload.html" title="enum actix_web::dev::Payload">Payload</a>)</h4></section></summary><div class="docblock"><p>Deconstruct <code>ServiceRequest</code> into inner parts.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.parts_mut" class="method"><a class="src rightside" href="../../src/actix_web/service.rs.html#94-96">source</a><h4 class="code-header">pub fn <a href="#method.parts_mut" class="fn">parts_mut</a>(&mut self) -> (&mut <a class="struct" href="../struct.HttpRequest.html" title="struct actix_web::HttpRequest">HttpRequest</a>, &mut <a class="enum" href="enum.Payload.html" title="enum actix_web::dev::Payload">Payload</a>)</h4></section></summary><div class="docblock"><p>Returns mutable accessors to inner parts.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.parts" class="method"><a class="src rightside" href="../../src/actix_web/service.rs.html#100-102">source</a><h4 class="code-header">pub fn <a href="#method.parts" class="fn">parts</a>(&self) -> (&<a class="struct" href="../struct.HttpRequest.html" title="struct actix_web::HttpRequest">HttpRequest</a>, &<a class="enum" href="enum.Payload.html" title="enum actix_web::dev::Payload">Payload</a>)</h4></section></summary><div class="docblock"><p>Returns immutable accessors to inner parts.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.request" class="method"><a class="src rightside" href="../../src/actix_web/service.rs.html#106-108">source</a><h4 class="code-header">pub fn <a href="#method.request" class="fn">request</a>(&self) -> &<a class="struct" href="../struct.HttpRequest.html" title="struct actix_web::HttpRequest">HttpRequest</a></h4></section></summary><div class="docblock"><p>Returns immutable accessor to inner <a href="../struct.HttpRequest.html" title="struct actix_web::HttpRequest"><code>HttpRequest</code></a>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.extract" class="method"><a class="src rightside" href="../../src/actix_web/service.rs.html#128-133">source</a><h4 class="code-header">pub fn <a href="#method.extract" class="fn">extract</a><T>(&mut self) -> <T as <a class="trait" href="../trait.FromRequest.html" title="trait actix_web::FromRequest">FromRequest</a>>::<a class="associatedtype" href="../trait.FromRequest.html#associatedtype.Future" title="type actix_web::FromRequest::Future">Future</a><div class="where">where
|
||
T: <a class="trait" href="../trait.FromRequest.html" title="trait actix_web::FromRequest">FromRequest</a>,</div></h4></section></summary><div class="docblock"><p>Derives a type from this request using an <a href="../trait.FromRequest.html" title="trait actix_web::FromRequest">extractor</a>.</p>
|
||
<p>Returns the <code>T</code> extractor’s <code>Future</code> type which can be <code>await</code>ed. This is particularly handy
|
||
when you want to use an extractor in a middleware implementation.</p>
|
||
<h5 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>actix_web::{
|
||
dev::{ServiceRequest, ServiceResponse},
|
||
web::Path, Error
|
||
};
|
||
|
||
<span class="kw">async fn </span>my_helper(<span class="kw-2">mut </span>srv_req: ServiceRequest) -> <span class="prelude-ty">Result</span><ServiceResponse, Error> {
|
||
<span class="kw">let </span>path = srv_req.extract::<Path<(String, u32)>>().<span class="kw">await</span><span class="question-mark">?</span>;
|
||
<span class="comment">// [...]
|
||
</span>}</code></pre></div>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.from_parts" class="method"><a class="src rightside" href="../../src/actix_web/service.rs.html#136-143">source</a><h4 class="code-header">pub fn <a href="#method.from_parts" class="fn">from_parts</a>(req: <a class="struct" href="../struct.HttpRequest.html" title="struct actix_web::HttpRequest">HttpRequest</a>, payload: <a class="enum" href="enum.Payload.html" title="enum actix_web::dev::Payload">Payload</a>) -> Self</h4></section></summary><div class="docblock"><p>Construct request from parts.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.from_request" class="method"><a class="src rightside" href="../../src/actix_web/service.rs.html#147-152">source</a><h4 class="code-header">pub fn <a href="#method.from_request" class="fn">from_request</a>(req: <a class="struct" href="../struct.HttpRequest.html" title="struct actix_web::HttpRequest">HttpRequest</a>) -> Self</h4></section></summary><div class="docblock"><p>Construct <code>ServiceRequest</code> with no payload from given <code>HttpRequest</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.into_response" class="method"><a class="src rightside" href="../../src/actix_web/service.rs.html#156-159">source</a><h4 class="code-header">pub fn <a href="#method.into_response" class="fn">into_response</a><B, R: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="struct.Response.html" title="struct actix_web::dev::Response">Response</a><B>>>(
|
||
self,
|
||
res: R
|
||
) -> <a class="struct" href="struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a><B></h4></section></summary><div class="docblock"><p>Create <code>ServiceResponse</code> from this request and given response.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.error_response" class="method"><a class="src rightside" href="../../src/actix_web/service.rs.html#163-166">source</a><h4 class="code-header">pub fn <a href="#method.error_response" class="fn">error_response</a><E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../error/struct.Error.html" title="struct actix_web::error::Error">Error</a>>>(self, err: E) -> <a class="struct" href="struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a></h4></section></summary><div class="docblock"><p>Create <code>ServiceResponse</code> from this request and given error.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.head" class="method"><a class="src rightside" href="../../src/actix_web/service.rs.html#170-172">source</a><h4 class="code-header">pub fn <a href="#method.head" class="fn">head</a>(&self) -> &<a class="struct" href="struct.RequestHead.html" title="struct actix_web::dev::RequestHead">RequestHead</a></h4></section></summary><div class="docblock"><p>Returns a reference to the request head.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.head_mut" class="method"><a class="src rightside" href="../../src/actix_web/service.rs.html#176-178">source</a><h4 class="code-header">pub fn <a href="#method.head_mut" class="fn">head_mut</a>(&mut self) -> &mut <a class="struct" href="struct.RequestHead.html" title="struct actix_web::dev::RequestHead">RequestHead</a></h4></section></summary><div class="docblock"><p>Returns a mutable reference to the request head.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.uri" class="method"><a class="src rightside" href="../../src/actix_web/service.rs.html#182-184">source</a><h4 class="code-header">pub fn <a href="#method.uri" class="fn">uri</a>(&self) -> &<a class="struct" href="../http/struct.Uri.html" title="struct actix_web::http::Uri">Uri</a></h4></section></summary><div class="docblock"><p>Returns the request URI.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.method" class="method"><a class="src rightside" href="../../src/actix_web/service.rs.html#188-190">source</a><h4 class="code-header">pub fn <a href="#method.method" class="fn">method</a>(&self) -> &<a class="struct" href="../http/struct.Method.html" title="struct actix_web::http::Method">Method</a></h4></section></summary><div class="docblock"><p>Returns the request method.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.version" class="method"><a class="src rightside" href="../../src/actix_web/service.rs.html#194-196">source</a><h4 class="code-header">pub fn <a href="#method.version" class="fn">version</a>(&self) -> <a class="struct" href="../http/struct.Version.html" title="struct actix_web::http::Version">Version</a></h4></section></summary><div class="docblock"><p>Returns the request version.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.headers" class="method"><a class="src rightside" href="../../src/actix_web/service.rs.html#200-202">source</a><h4 class="code-header">pub fn <a href="#method.headers" class="fn">headers</a>(&self) -> &<a class="struct" href="../http/header/struct.HeaderMap.html" title="struct actix_web::http::header::HeaderMap">HeaderMap</a></h4></section></summary><div class="docblock"><p>Returns a reference to request headers.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.headers_mut" class="method"><a class="src rightside" href="../../src/actix_web/service.rs.html#206-208">source</a><h4 class="code-header">pub fn <a href="#method.headers_mut" class="fn">headers_mut</a>(&mut self) -> &mut <a class="struct" href="../http/header/struct.HeaderMap.html" title="struct actix_web::http::header::HeaderMap">HeaderMap</a></h4></section></summary><div class="docblock"><p>Returns a mutable reference to request headers.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.path" class="method"><a class="src rightside" href="../../src/actix_web/service.rs.html#212-214">source</a><h4 class="code-header">pub fn <a href="#method.path" class="fn">path</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></h4></section></summary><div class="docblock"><p>Returns request path.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.query_string" class="method"><a class="src rightside" href="../../src/actix_web/service.rs.html#218-220">source</a><h4 class="code-header">pub fn <a href="#method.query_string" class="fn">query_string</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></h4></section></summary><div class="docblock"><p>Counterpart to <a href="../struct.HttpRequest.html#method.query_string" title="method actix_web::HttpRequest::query_string"><code>HttpRequest::query_string</code></a>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.peer_addr" class="method"><a class="src rightside" href="../../src/actix_web/service.rs.html#228-230">source</a><h4 class="code-header">pub fn <a href="#method.peer_addr" class="fn">peer_addr</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/net/socket_addr/enum.SocketAddr.html" title="enum core::net::socket_addr::SocketAddr">SocketAddr</a>></h4></section></summary><div class="docblock"><p>Returns peer’s socket address.</p>
|
||
<p>See <a href="../struct.HttpRequest.html#method.peer_addr" title="method actix_web::HttpRequest::peer_addr"><code>HttpRequest::peer_addr</code></a> for more details.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.connection_info" class="method"><a class="src rightside" href="../../src/actix_web/service.rs.html#234-236">source</a><h4 class="code-header">pub fn <a href="#method.connection_info" class="fn">connection_info</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/cell/struct.Ref.html" title="struct core::cell::Ref">Ref</a><'_, <a class="struct" href="struct.ConnectionInfo.html" title="struct actix_web::dev::ConnectionInfo">ConnectionInfo</a>></h4></section></summary><div class="docblock"><p>Returns a reference to connection info.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.match_info" class="method"><a class="src rightside" href="../../src/actix_web/service.rs.html#240-242">source</a><h4 class="code-header">pub fn <a href="#method.match_info" class="fn">match_info</a>(&self) -> &<a class="struct" href="struct.Path.html" title="struct actix_web::dev::Path">Path</a><<a class="struct" href="struct.Url.html" title="struct actix_web::dev::Url">Url</a>></h4></section></summary><div class="docblock"><p>Counterpart to <a href="../struct.HttpRequest.html#method.match_info" title="method actix_web::HttpRequest::match_info"><code>HttpRequest::match_info</code></a>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.match_info_mut" class="method"><a class="src rightside" href="../../src/actix_web/service.rs.html#246-248">source</a><h4 class="code-header">pub fn <a href="#method.match_info_mut" class="fn">match_info_mut</a>(&mut self) -> &mut <a class="struct" href="struct.Path.html" title="struct actix_web::dev::Path">Path</a><<a class="struct" href="struct.Url.html" title="struct actix_web::dev::Url">Url</a>></h4></section></summary><div class="docblock"><p>Returns a mutable reference to the path match information.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.match_name" class="method"><a class="src rightside" href="../../src/actix_web/service.rs.html#252-254">source</a><h4 class="code-header">pub fn <a href="#method.match_name" class="fn">match_name</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>></h4></section></summary><div class="docblock"><p>Counterpart to <a href="../struct.HttpRequest.html#method.match_name" title="method actix_web::HttpRequest::match_name"><code>HttpRequest::match_name</code></a>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.match_pattern" class="method"><a class="src rightside" href="../../src/actix_web/service.rs.html#258-260">source</a><h4 class="code-header">pub fn <a href="#method.match_pattern" class="fn">match_pattern</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section></summary><div class="docblock"><p>Counterpart to <a href="../struct.HttpRequest.html#method.match_pattern" title="method actix_web::HttpRequest::match_pattern"><code>HttpRequest::match_pattern</code></a>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.resource_map" class="method"><a class="src rightside" href="../../src/actix_web/service.rs.html#265-267">source</a><h4 class="code-header">pub fn <a href="#method.resource_map" class="fn">resource_map</a>(&self) -> &<a class="struct" href="struct.ResourceMap.html" title="struct actix_web::dev::ResourceMap">ResourceMap</a></h4></section></summary><div class="docblock"><p>Returns a reference to the application’s resource map.
|
||
Counterpart to <a href="../struct.HttpRequest.html#method.resource_map" title="method actix_web::HttpRequest::resource_map"><code>HttpRequest::resource_map</code></a>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.app_config" class="method"><a class="src rightside" href="../../src/actix_web/service.rs.html#271-273">source</a><h4 class="code-header">pub fn <a href="#method.app_config" class="fn">app_config</a>(&self) -> &<a class="struct" href="struct.AppConfig.html" title="struct actix_web::dev::AppConfig">AppConfig</a></h4></section></summary><div class="docblock"><p>Counterpart to <a href="../struct.HttpRequest.html#method.app_config" title="method actix_web::HttpRequest::app_config"><code>HttpRequest::app_config</code></a>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.app_data" class="method"><a class="src rightside" href="../../src/actix_web/service.rs.html#277-285">source</a><h4 class="code-header">pub fn <a href="#method.app_data" class="fn">app_data</a><T: 'static>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&T</a>></h4></section></summary><div class="docblock"><p>Counterpart to <a href="../struct.HttpRequest.html#method.app_data" title="method actix_web::HttpRequest::app_data"><code>HttpRequest::app_data</code></a>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.conn_data" class="method"><a class="src rightside" href="../../src/actix_web/service.rs.html#289-291">source</a><h4 class="code-header">pub fn <a href="#method.conn_data" class="fn">conn_data</a><T: 'static>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&T</a>></h4></section></summary><div class="docblock"><p>Counterpart to <a href="../struct.HttpRequest.html#method.conn_data" title="method actix_web::HttpRequest::conn_data"><code>HttpRequest::conn_data</code></a>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.cookies" class="method"><a class="src rightside" href="../../src/actix_web/service.rs.html#296-298">source</a><h4 class="code-header">pub fn <a href="#method.cookies" class="fn">cookies</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/nightly/core/cell/struct.Ref.html" title="struct core::cell::Ref">Ref</a><'_, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../cookie/struct.Cookie.html" title="struct actix_web::cookie::Cookie">Cookie</a><'static>>>, <a class="enum" href="../cookie/enum.ParseError.html" title="enum actix_web::cookie::ParseError">CookieParseError</a>></h4></section><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>cookies</code></strong> only.</div></span></summary><div class="docblock"><p>Return request cookies.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.cookie" class="method"><a class="src rightside" href="../../src/actix_web/service.rs.html#303-305">source</a><h4 class="code-header">pub fn <a href="#method.cookie" class="fn">cookie</a>(&self, name: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../cookie/struct.Cookie.html" title="struct actix_web::cookie::Cookie">Cookie</a><'static>></h4></section><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>cookies</code></strong> only.</div></span></summary><div class="docblock"><p>Return request cookie.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_payload" class="method"><a class="src rightside" href="../../src/actix_web/service.rs.html#309-311">source</a><h4 class="code-header">pub fn <a href="#method.set_payload" class="fn">set_payload</a>(&mut self, payload: <a class="enum" href="enum.Payload.html" title="enum actix_web::dev::Payload">Payload</a>)</h4></section></summary><div class="docblock"><p>Set request payload.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_data_container" class="method"><a class="src rightside" href="../../src/actix_web/service.rs.html#317-322">source</a><h4 class="code-header">pub fn <a href="#method.add_data_container" class="fn">add_data_container</a>(&mut self, extensions: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html" title="struct alloc::rc::Rc">Rc</a><<a class="struct" href="struct.Extensions.html" title="struct actix_web::dev::Extensions">Extensions</a>>)</h4></section></summary><div class="docblock"><p>Add data container to request’s resolution set.</p>
|
||
<p>In middleware, prefer <a href="struct.ServiceRequest.html#method.extensions_mut" title="method actix_web::dev::ServiceRequest::extensions_mut"><code>extensions_mut</code></a> for request-local
|
||
data since it is assumed that the same app data is presented for every request.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.guard_ctx" class="method"><a class="src rightside" href="../../src/actix_web/service.rs.html#326-328">source</a><h4 class="code-header">pub fn <a href="#method.guard_ctx" class="fn">guard_ctx</a>(&self) -> <a class="struct" href="../guard/struct.GuardContext.html" title="struct actix_web::guard::GuardContext">GuardContext</a><'_></h4></section></summary><div class="docblock"><p>Creates a context object for use with a routing <a href="../guard/index.html" title="mod actix_web::guard">guard</a>.</p>
|
||
</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-ServiceRequest" class="impl"><a class="src rightside" href="../../src/actix_web/service.rs.html#364-385">source</a><a href="#impl-Debug-for-ServiceRequest" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a class="src rightside" href="../../src/actix_web/service.rs.html#365-384">source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-HttpMessage-for-ServiceRequest" class="impl"><a class="src rightside" href="../../src/actix_web/service.rs.html#340-362">source</a><a href="#impl-HttpMessage-for-ServiceRequest" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../trait.HttpMessage.html" title="trait actix_web::HttpMessage">HttpMessage</a> for <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Stream" class="associatedtype trait-impl"><a href="#associatedtype.Stream" class="anchor">§</a><h4 class="code-header">type <a href="../trait.HttpMessage.html#associatedtype.Stream" class="associatedtype">Stream</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn Stream<Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../web/struct.Bytes.html" title="struct actix_web::web::Bytes">Bytes</a>, <a class="enum" href="../error/enum.PayloadError.html" title="enum actix_web::error::PayloadError">PayloadError</a>>>>></h4></section></summary><div class='docblock'>Type of message payload stream</div></details><details class="toggle method-toggle" open><summary><section id="method.headers-1" class="method trait-impl"><a class="src rightside" href="../../src/actix_web/service.rs.html#344-346">source</a><a href="#method.headers-1" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.HttpMessage.html#tymethod.headers" class="fn">headers</a>(&self) -> &<a class="struct" href="../http/header/struct.HeaderMap.html" title="struct actix_web::http::header::HeaderMap">HeaderMap</a></h4></section></summary><div class='docblock'>Read the message headers.</div></details><details class="toggle method-toggle" open><summary><section id="method.extensions" class="method trait-impl"><a class="src rightside" href="../../src/actix_web/service.rs.html#349-351">source</a><a href="#method.extensions" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.HttpMessage.html#tymethod.extensions" class="fn">extensions</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/cell/struct.Ref.html" title="struct core::cell::Ref">Ref</a><'_, <a class="struct" href="struct.Extensions.html" title="struct actix_web::dev::Extensions">Extensions</a>></h4></section></summary><div class='docblock'>Returns a reference to the request-local data/extensions container.</div></details><details class="toggle method-toggle" open><summary><section id="method.extensions_mut" class="method trait-impl"><a class="src rightside" href="../../src/actix_web/service.rs.html#354-356">source</a><a href="#method.extensions_mut" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.HttpMessage.html#tymethod.extensions_mut" class="fn">extensions_mut</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/cell/struct.RefMut.html" title="struct core::cell::RefMut">RefMut</a><'_, <a class="struct" href="struct.Extensions.html" title="struct actix_web::dev::Extensions">Extensions</a>></h4></section></summary><div class='docblock'>Returns a mutable reference to the request-local data/extensions container.</div></details><details class="toggle method-toggle" open><summary><section id="method.take_payload" class="method trait-impl"><a class="src rightside" href="../../src/actix_web/service.rs.html#359-361">source</a><a href="#method.take_payload" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.HttpMessage.html#tymethod.take_payload" class="fn">take_payload</a>(&mut self) -> <a class="enum" href="enum.Payload.html" title="enum actix_web::dev::Payload">Payload</a><Self::<a class="associatedtype" href="../trait.HttpMessage.html#associatedtype.Stream" title="type actix_web::HttpMessage::Stream">Stream</a>></h4></section></summary><div class='docblock'>Message payload stream</div></details><details class="toggle method-toggle" open><summary><section id="method.content_type" class="method trait-impl"><a class="src rightside" href="../../src/actix_http/http_message.rs.html#49">source</a><a href="#method.content_type" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.HttpMessage.html#method.content_type" class="fn">content_type</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></h4></section></summary><div class='docblock'>Read the request content type. If request did not contain a <em>Content-Type</em> header, an empty
|
||
string is returned.</div></details><details class="toggle method-toggle" open><summary><section id="method.encoding" class="method trait-impl"><a class="src rightside" href="../../src/actix_http/http_message.rs.html#61">source</a><a href="#method.encoding" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.HttpMessage.html#method.encoding" class="fn">encoding</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><&'static Encoding, <a class="enum" href="../error/enum.ContentTypeError.html" title="enum actix_web::error::ContentTypeError">ContentTypeError</a>></h4></section></summary><div class='docblock'>Get content type encoding. <a href="../trait.HttpMessage.html#method.encoding">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.mime_type" class="method trait-impl"><a class="src rightside" href="../../src/actix_http/http_message.rs.html#78">source</a><a href="#method.mime_type" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.HttpMessage.html#method.mime_type" class="fn">mime_type</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://docs.rs/mime/0.3.17/mime/struct.Mime.html" title="struct mime::Mime">Mime</a>>, <a class="enum" href="../error/enum.ContentTypeError.html" title="enum actix_web::error::ContentTypeError">ContentTypeError</a>></h4></section></summary><div class='docblock'>Convert the request content type to a known mime type.</div></details><details class="toggle method-toggle" open><summary><section id="method.chunked" class="method trait-impl"><a class="src rightside" href="../../src/actix_http/http_message.rs.html#93">source</a><a href="#method.chunked" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.HttpMessage.html#method.chunked" class="fn">chunked</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <a class="enum" href="../error/enum.ParseError.html" title="enum actix_web::error::ParseError">ParseError</a>></h4></section></summary><div class='docblock'>Check if request has chunked transfer encoding.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Resource-for-ServiceRequest" class="impl"><a class="src rightside" href="../../src/actix_web/service.rs.html#331-338">source</a><a href="#impl-Resource-for-ServiceRequest" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../../actix_router/resource_path/trait.Resource.html" title="trait actix_router::resource_path::Resource">Resource</a> for <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Path" class="associatedtype trait-impl"><a href="#associatedtype.Path" class="anchor">§</a><h4 class="code-header">type <a href="../../actix_router/resource_path/trait.Resource.html#associatedtype.Path" class="associatedtype">Path</a> = <a class="struct" href="struct.Url.html" title="struct actix_web::dev::Url">Url</a></h4></section></summary><div class='docblock'>Type of resource’s path returned in <code>resource_path</code>.</div></details><section id="method.resource_path" class="method trait-impl"><a class="src rightside" href="../../src/actix_web/service.rs.html#335-337">source</a><a href="#method.resource_path" class="anchor">§</a><h4 class="code-header">fn <a href="../../actix_router/resource_path/trait.Resource.html#tymethod.resource_path" class="fn">resource_path</a>(&mut self) -> &mut <a class="struct" href="struct.Path.html" title="struct actix_web::dev::Path">Path</a><Self::<a class="associatedtype" href="../../actix_router/resource_path/trait.Resource.html#associatedtype.Path" title="type actix_router::resource_path::Resource::Path">Path</a>></h4></section></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-ServiceFactory%3CServiceRequest%3E-for-Route" class="impl"><a class="src rightside" href="../../src/actix_web/route.rs.html#70-87">source</a><a href="#impl-ServiceFactory%3CServiceRequest%3E-for-Route" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><<a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>> for <a class="struct" href="../struct.Route.html" title="struct actix_web::Route">Route</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Response-3" class="associatedtype trait-impl"><a href="#associatedtype.Response-3" class="anchor">§</a><h4 class="code-header">type <a href="trait.ServiceFactory.html#associatedtype.Response" class="associatedtype">Response</a> = <a class="struct" href="struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a></h4></section></summary><div class='docblock'>Responses given by the created services.</div></details><details class="toggle" open><summary><section id="associatedtype.Error-3" class="associatedtype trait-impl"><a href="#associatedtype.Error-3" class="anchor">§</a><h4 class="code-header">type <a href="trait.ServiceFactory.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="../error/struct.Error.html" title="struct actix_web::error::Error">Error</a></h4></section></summary><div class='docblock'>Errors produced by the created services.</div></details><details class="toggle" open><summary><section id="associatedtype.Config" class="associatedtype trait-impl"><a href="#associatedtype.Config" class="anchor">§</a><h4 class="code-header">type <a href="trait.ServiceFactory.html#associatedtype.Config" class="associatedtype">Config</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section></summary><div class='docblock'>Service factory configuration.</div></details><details class="toggle" open><summary><section id="associatedtype.Service" class="associatedtype trait-impl"><a href="#associatedtype.Service" class="anchor">§</a><h4 class="code-header">type <a href="trait.ServiceFactory.html#associatedtype.Service" class="associatedtype">Service</a> = RouteService</h4></section></summary><div class='docblock'>The kind of <code>Service</code> created by this factory.</div></details><details class="toggle" open><summary><section id="associatedtype.InitError-3" class="associatedtype trait-impl"><a href="#associatedtype.InitError-3" class="anchor">§</a><h4 class="code-header">type <a href="trait.ServiceFactory.html#associatedtype.InitError" class="associatedtype">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section></summary><div class='docblock'>Errors potentially raised while building a service.</div></details><details class="toggle" open><summary><section id="associatedtype.Future-3" class="associatedtype trait-impl"><a href="#associatedtype.Future-3" class="anchor">§</a><h4 class="code-header">type <a href="trait.ServiceFactory.html#associatedtype.Future" class="associatedtype">Future</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<<a class="struct" href="../struct.Route.html" title="struct actix_web::Route">Route</a> as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><<a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Service" title="type actix_web::dev::ServiceFactory::Service">Service</a>, <<a class="struct" href="../struct.Route.html" title="struct actix_web::Route">Route</a> as <a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a><<a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>>>::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.InitError" title="type actix_web::dev::ServiceFactory::InitError">InitError</a>>>>></h4></section></summary><div class='docblock'>The future of the <code>Service</code> instance.g</div></details><details class="toggle method-toggle" open><summary><section id="method.new_service" class="method trait-impl"><a class="src rightside" href="../../src/actix_web/route.rs.html#78-86">source</a><a href="#method.new_service" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ServiceFactory.html#tymethod.new_service" class="fn">new_service</a>(&self, _: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>) -> Self::<a class="associatedtype" href="trait.ServiceFactory.html#associatedtype.Future" title="type actix_web::dev::ServiceFactory::Future">Future</a></h4></section></summary><div class='docblock'>Create and return a new service asynchronously.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Transform%3CS,+ServiceRequest%3E-for-Compress" class="impl"><a class="src rightside" href="../../src/actix_web/middleware/compress.rs.html#79-93">source</a><a href="#impl-Transform%3CS,+ServiceRequest%3E-for-Compress" class="anchor">§</a><h3 class="code-header">impl<S, B> <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S, <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>> for <a class="struct" href="../middleware/struct.Compress.html" title="struct actix_web::middleware::Compress">Compress</a><div class="where">where
|
||
B: <a class="trait" href="../body/trait.MessageBody.html" title="trait actix_web::body::MessageBody">MessageBody</a>,
|
||
S: <a class="trait" href="trait.Service.html" title="trait actix_web::dev::Service">Service</a><<a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>, Response = <a class="struct" href="struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a><B>, Error = <a class="struct" href="../error/struct.Error.html" title="struct actix_web::error::Error">Error</a>>,</div></h3><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>__compress</code></strong> only.</div></span></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Response-2" class="associatedtype trait-impl"><a href="#associatedtype.Response-2" class="anchor">§</a><h4 class="code-header">type <a href="trait.Transform.html#associatedtype.Response" class="associatedtype">Response</a> = <a class="struct" href="struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a><<a class="enum" href="../body/enum.EitherBody.html" title="enum actix_web::body::EitherBody">EitherBody</a><<a class="struct" href="../../actix_http/encoding/encoder/struct.Encoder.html" title="struct actix_http::encoding::encoder::Encoder">Encoder</a><B>>></h4></section></summary><div class='docblock'>Responses produced by the service.</div></details><details class="toggle" open><summary><section id="associatedtype.Error-2" class="associatedtype trait-impl"><a href="#associatedtype.Error-2" class="anchor">§</a><h4 class="code-header">type <a href="trait.Transform.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="../error/struct.Error.html" title="struct actix_web::error::Error">Error</a></h4></section></summary><div class='docblock'>Errors produced by the service.</div></details><details class="toggle" open><summary><section id="associatedtype.Transform-2" class="associatedtype trait-impl"><a href="#associatedtype.Transform-2" class="anchor">§</a><h4 class="code-header">type <a href="trait.Transform.html#associatedtype.Transform" class="associatedtype">Transform</a> = CompressMiddleware<S></h4></section></summary><div class='docblock'>The <code>TransformService</code> value created by this factory</div></details><details class="toggle" open><summary><section id="associatedtype.InitError-2" class="associatedtype trait-impl"><a href="#associatedtype.InitError-2" class="anchor">§</a><h4 class="code-header">type <a href="trait.Transform.html#associatedtype.InitError" class="associatedtype">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section></summary><div class='docblock'>Errors produced while building a transform service.</div></details><details class="toggle" open><summary><section id="associatedtype.Future-2" class="associatedtype trait-impl"><a href="#associatedtype.Future-2" class="anchor">§</a><h4 class="code-header">type <a href="trait.Transform.html#associatedtype.Future" class="associatedtype">Future</a> = Ready<<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<<a class="struct" href="../middleware/struct.Compress.html" title="struct actix_web::middleware::Compress">Compress</a> as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S, <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>>>::<a class="associatedtype" href="trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a>, <<a class="struct" href="../middleware/struct.Compress.html" title="struct actix_web::middleware::Compress">Compress</a> as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S, <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>>>::<a class="associatedtype" href="trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a>>></h4></section></summary><div class='docblock'>The future response value.</div></details><details class="toggle method-toggle" open><summary><section id="method.new_transform-2" class="method trait-impl"><a class="src rightside" href="../../src/actix_web/middleware/compress.rs.html#90-92">source</a><a href="#method.new_transform-2" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Transform.html#tymethod.new_transform" class="fn">new_transform</a>(&self, service: S) -> Self::<a class="associatedtype" href="trait.Transform.html#associatedtype.Future" title="type actix_web::dev::Transform::Future">Future</a></h4></section></summary><div class='docblock'>Creates and returns a new Transform component, asynchronously</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Transform%3CS,+ServiceRequest%3E-for-DefaultHeaders" class="impl"><a class="src rightside" href="../../src/actix_web/middleware/default_headers.rs.html#108-125">source</a><a href="#impl-Transform%3CS,+ServiceRequest%3E-for-DefaultHeaders" class="anchor">§</a><h3 class="code-header">impl<S, B> <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S, <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>> for <a class="struct" href="../middleware/struct.DefaultHeaders.html" title="struct actix_web::middleware::DefaultHeaders">DefaultHeaders</a><div class="where">where
|
||
S: <a class="trait" href="trait.Service.html" title="trait actix_web::dev::Service">Service</a><<a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>, Response = <a class="struct" href="struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a><B>, Error = <a class="struct" href="../error/struct.Error.html" title="struct actix_web::error::Error">Error</a>>,
|
||
S::<a class="associatedtype" href="trait.Service.html#associatedtype.Future" title="type actix_web::dev::Service::Future">Future</a>: 'static,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Response-1" class="associatedtype trait-impl"><a href="#associatedtype.Response-1" class="anchor">§</a><h4 class="code-header">type <a href="trait.Transform.html#associatedtype.Response" class="associatedtype">Response</a> = <a class="struct" href="struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a><B></h4></section></summary><div class='docblock'>Responses produced by the service.</div></details><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="trait.Transform.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="../error/struct.Error.html" title="struct actix_web::error::Error">Error</a></h4></section></summary><div class='docblock'>Errors produced by the service.</div></details><details class="toggle" open><summary><section id="associatedtype.Transform-1" class="associatedtype trait-impl"><a href="#associatedtype.Transform-1" class="anchor">§</a><h4 class="code-header">type <a href="trait.Transform.html#associatedtype.Transform" class="associatedtype">Transform</a> = DefaultHeadersMiddleware<S></h4></section></summary><div class='docblock'>The <code>TransformService</code> value created by this factory</div></details><details class="toggle" open><summary><section id="associatedtype.InitError-1" class="associatedtype trait-impl"><a href="#associatedtype.InitError-1" class="anchor">§</a><h4 class="code-header">type <a href="trait.Transform.html#associatedtype.InitError" class="associatedtype">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section></summary><div class='docblock'>Errors produced while building a transform service.</div></details><details class="toggle" open><summary><section id="associatedtype.Future-1" class="associatedtype trait-impl"><a href="#associatedtype.Future-1" class="anchor">§</a><h4 class="code-header">type <a href="trait.Transform.html#associatedtype.Future" class="associatedtype">Future</a> = Ready<<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<<a class="struct" href="../middleware/struct.DefaultHeaders.html" title="struct actix_web::middleware::DefaultHeaders">DefaultHeaders</a> as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S, <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>>>::<a class="associatedtype" href="trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a>, <<a class="struct" href="../middleware/struct.DefaultHeaders.html" title="struct actix_web::middleware::DefaultHeaders">DefaultHeaders</a> as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S, <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>>>::<a class="associatedtype" href="trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a>>></h4></section></summary><div class='docblock'>The future response value.</div></details><details class="toggle method-toggle" open><summary><section id="method.new_transform-1" class="method trait-impl"><a class="src rightside" href="../../src/actix_web/middleware/default_headers.rs.html#119-124">source</a><a href="#method.new_transform-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Transform.html#tymethod.new_transform" class="fn">new_transform</a>(&self, service: S) -> Self::<a class="associatedtype" href="trait.Transform.html#associatedtype.Future" title="type actix_web::dev::Transform::Future">Future</a></h4></section></summary><div class='docblock'>Creates and returns a new Transform component, asynchronously</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Transform%3CS,+ServiceRequest%3E-for-ErrorHandlers%3CB%3E" class="impl"><a class="src rightside" href="../../src/actix_web/middleware/err_handlers.rs.html#278-303">source</a><a href="#impl-Transform%3CS,+ServiceRequest%3E-for-ErrorHandlers%3CB%3E" class="anchor">§</a><h3 class="code-header">impl<S, B> <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S, <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>> for <a class="struct" href="../middleware/struct.ErrorHandlers.html" title="struct actix_web::middleware::ErrorHandlers">ErrorHandlers</a><B><div class="where">where
|
||
S: <a class="trait" href="trait.Service.html" title="trait actix_web::dev::Service">Service</a><<a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>, Response = <a class="struct" href="struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a><B>, Error = <a class="struct" href="../error/struct.Error.html" title="struct actix_web::error::Error">Error</a>> + 'static,
|
||
S::<a class="associatedtype" href="trait.Service.html#associatedtype.Future" title="type actix_web::dev::Service::Future">Future</a>: 'static,
|
||
B: 'static,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Response-5" class="associatedtype trait-impl"><a href="#associatedtype.Response-5" class="anchor">§</a><h4 class="code-header">type <a href="trait.Transform.html#associatedtype.Response" class="associatedtype">Response</a> = <a class="struct" href="struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a><<a class="enum" href="../body/enum.EitherBody.html" title="enum actix_web::body::EitherBody">EitherBody</a><B>></h4></section></summary><div class='docblock'>Responses produced by the service.</div></details><details class="toggle" open><summary><section id="associatedtype.Error-5" class="associatedtype trait-impl"><a href="#associatedtype.Error-5" class="anchor">§</a><h4 class="code-header">type <a href="trait.Transform.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="../error/struct.Error.html" title="struct actix_web::error::Error">Error</a></h4></section></summary><div class='docblock'>Errors produced by the service.</div></details><details class="toggle" open><summary><section id="associatedtype.Transform-4" class="associatedtype trait-impl"><a href="#associatedtype.Transform-4" class="anchor">§</a><h4 class="code-header">type <a href="trait.Transform.html#associatedtype.Transform" class="associatedtype">Transform</a> = ErrorHandlersMiddleware<S, B></h4></section></summary><div class='docblock'>The <code>TransformService</code> value created by this factory</div></details><details class="toggle" open><summary><section id="associatedtype.InitError-5" class="associatedtype trait-impl"><a href="#associatedtype.InitError-5" class="anchor">§</a><h4 class="code-header">type <a href="trait.Transform.html#associatedtype.InitError" class="associatedtype">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section></summary><div class='docblock'>Errors produced while building a transform service.</div></details><details class="toggle" open><summary><section id="associatedtype.Future-5" class="associatedtype trait-impl"><a href="#associatedtype.Future-5" class="anchor">§</a><h4 class="code-header">type <a href="trait.Transform.html#associatedtype.Future" class="associatedtype">Future</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<<a class="struct" href="../middleware/struct.ErrorHandlers.html" title="struct actix_web::middleware::ErrorHandlers">ErrorHandlers</a><B> as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S, <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>>>::<a class="associatedtype" href="trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a>, <<a class="struct" href="../middleware/struct.ErrorHandlers.html" title="struct actix_web::middleware::ErrorHandlers">ErrorHandlers</a><B> as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S, <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>>>::<a class="associatedtype" href="trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a>>>>></h4></section></summary><div class='docblock'>The future response value.</div></details><details class="toggle method-toggle" open><summary><section id="method.new_transform-4" class="method trait-impl"><a class="src rightside" href="../../src/actix_web/middleware/err_handlers.rs.html#290-302">source</a><a href="#method.new_transform-4" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Transform.html#tymethod.new_transform" class="fn">new_transform</a>(&self, service: S) -> Self::<a class="associatedtype" href="trait.Transform.html#associatedtype.Future" title="type actix_web::dev::Transform::Future">Future</a></h4></section></summary><div class='docblock'>Creates and returns a new Transform component, asynchronously</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Transform%3CS,+ServiceRequest%3E-for-Logger" class="impl"><a class="src rightside" href="../../src/actix_web/middleware/logger.rs.html#249-282">source</a><a href="#impl-Transform%3CS,+ServiceRequest%3E-for-Logger" class="anchor">§</a><h3 class="code-header">impl<S, B> <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S, <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>> for <a class="struct" href="../middleware/struct.Logger.html" title="struct actix_web::middleware::Logger">Logger</a><div class="where">where
|
||
S: <a class="trait" href="trait.Service.html" title="trait actix_web::dev::Service">Service</a><<a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>, Response = <a class="struct" href="struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a><B>, Error = <a class="struct" href="../error/struct.Error.html" title="struct actix_web::error::Error">Error</a>>,
|
||
B: <a class="trait" href="../body/trait.MessageBody.html" title="trait actix_web::body::MessageBody">MessageBody</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Response" class="associatedtype trait-impl"><a href="#associatedtype.Response" class="anchor">§</a><h4 class="code-header">type <a href="trait.Transform.html#associatedtype.Response" class="associatedtype">Response</a> = <a class="struct" href="struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a><StreamLog<B>></h4></section></summary><div class='docblock'>Responses produced by the service.</div></details><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="trait.Transform.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="../error/struct.Error.html" title="struct actix_web::error::Error">Error</a></h4></section></summary><div class='docblock'>Errors produced by the service.</div></details><details class="toggle" open><summary><section id="associatedtype.Transform" class="associatedtype trait-impl"><a href="#associatedtype.Transform" class="anchor">§</a><h4 class="code-header">type <a href="trait.Transform.html#associatedtype.Transform" class="associatedtype">Transform</a> = LoggerMiddleware<S></h4></section></summary><div class='docblock'>The <code>TransformService</code> value created by this factory</div></details><details class="toggle" open><summary><section id="associatedtype.InitError" class="associatedtype trait-impl"><a href="#associatedtype.InitError" class="anchor">§</a><h4 class="code-header">type <a href="trait.Transform.html#associatedtype.InitError" class="associatedtype">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section></summary><div class='docblock'>Errors produced while building a transform service.</div></details><details class="toggle" open><summary><section id="associatedtype.Future" class="associatedtype trait-impl"><a href="#associatedtype.Future" class="anchor">§</a><h4 class="code-header">type <a href="trait.Transform.html#associatedtype.Future" class="associatedtype">Future</a> = Ready<<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<<a class="struct" href="../middleware/struct.Logger.html" title="struct actix_web::middleware::Logger">Logger</a> as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S, <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>>>::<a class="associatedtype" href="trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a>, <<a class="struct" href="../middleware/struct.Logger.html" title="struct actix_web::middleware::Logger">Logger</a> as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S, <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>>>::<a class="associatedtype" href="trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a>>></h4></section></summary><div class='docblock'>The future response value.</div></details><details class="toggle method-toggle" open><summary><section id="method.new_transform" class="method trait-impl"><a class="src rightside" href="../../src/actix_web/middleware/logger.rs.html#260-281">source</a><a href="#method.new_transform" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Transform.html#tymethod.new_transform" class="fn">new_transform</a>(&self, service: S) -> Self::<a class="associatedtype" href="trait.Transform.html#associatedtype.Future" title="type actix_web::dev::Transform::Future">Future</a></h4></section></summary><div class='docblock'>Creates and returns a new Transform component, asynchronously</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Transform%3CS,+ServiceRequest%3E-for-NormalizePath" class="impl"><a class="src rightside" href="../../src/actix_web/middleware/normalize.rs.html#114-132">source</a><a href="#impl-Transform%3CS,+ServiceRequest%3E-for-NormalizePath" class="anchor">§</a><h3 class="code-header">impl<S, B> <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S, <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>> for <a class="struct" href="../middleware/struct.NormalizePath.html" title="struct actix_web::middleware::NormalizePath">NormalizePath</a><div class="where">where
|
||
S: <a class="trait" href="trait.Service.html" title="trait actix_web::dev::Service">Service</a><<a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>, Response = <a class="struct" href="struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a><B>, Error = <a class="struct" href="../error/struct.Error.html" title="struct actix_web::error::Error">Error</a>>,
|
||
S::<a class="associatedtype" href="trait.Service.html#associatedtype.Future" title="type actix_web::dev::Service::Future">Future</a>: 'static,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Response-4" class="associatedtype trait-impl"><a href="#associatedtype.Response-4" class="anchor">§</a><h4 class="code-header">type <a href="trait.Transform.html#associatedtype.Response" class="associatedtype">Response</a> = <a class="struct" href="struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a><B></h4></section></summary><div class='docblock'>Responses produced by the service.</div></details><details class="toggle" open><summary><section id="associatedtype.Error-4" class="associatedtype trait-impl"><a href="#associatedtype.Error-4" class="anchor">§</a><h4 class="code-header">type <a href="trait.Transform.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="../error/struct.Error.html" title="struct actix_web::error::Error">Error</a></h4></section></summary><div class='docblock'>Errors produced by the service.</div></details><details class="toggle" open><summary><section id="associatedtype.Transform-3" class="associatedtype trait-impl"><a href="#associatedtype.Transform-3" class="anchor">§</a><h4 class="code-header">type <a href="trait.Transform.html#associatedtype.Transform" class="associatedtype">Transform</a> = NormalizePathNormalization<S></h4></section></summary><div class='docblock'>The <code>TransformService</code> value created by this factory</div></details><details class="toggle" open><summary><section id="associatedtype.InitError-4" class="associatedtype trait-impl"><a href="#associatedtype.InitError-4" class="anchor">§</a><h4 class="code-header">type <a href="trait.Transform.html#associatedtype.InitError" class="associatedtype">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section></summary><div class='docblock'>Errors produced while building a transform service.</div></details><details class="toggle" open><summary><section id="associatedtype.Future-4" class="associatedtype trait-impl"><a href="#associatedtype.Future-4" class="anchor">§</a><h4 class="code-header">type <a href="trait.Transform.html#associatedtype.Future" class="associatedtype">Future</a> = Ready<<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<<a class="struct" href="../middleware/struct.NormalizePath.html" title="struct actix_web::middleware::NormalizePath">NormalizePath</a> as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S, <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>>>::<a class="associatedtype" href="trait.Transform.html#associatedtype.Transform" title="type actix_web::dev::Transform::Transform">Transform</a>, <<a class="struct" href="../middleware/struct.NormalizePath.html" title="struct actix_web::middleware::NormalizePath">NormalizePath</a> as <a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a><S, <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a>>>::<a class="associatedtype" href="trait.Transform.html#associatedtype.InitError" title="type actix_web::dev::Transform::InitError">InitError</a>>></h4></section></summary><div class='docblock'>The future response value.</div></details><details class="toggle method-toggle" open><summary><section id="method.new_transform-3" class="method trait-impl"><a class="src rightside" href="../../src/actix_web/middleware/normalize.rs.html#125-131">source</a><a href="#method.new_transform-3" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Transform.html#tymethod.new_transform" class="fn">new_transform</a>(&self, service: S) -> Self::<a class="associatedtype" href="trait.Transform.html#associatedtype.Future" title="type actix_web::dev::Transform::Future">Future</a></h4></section></summary><div class='docblock'>Creates and returns a new Transform component, asynchronously</div></details></div></details></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-ServiceRequest" class="impl"><a href="#impl-Freeze-for-ServiceRequest" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a></h3></section><section id="impl-RefUnwindSafe-for-ServiceRequest" class="impl"><a href="#impl-RefUnwindSafe-for-ServiceRequest" class="anchor">§</a><h3 class="code-header">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a></h3></section><section id="impl-Send-for-ServiceRequest" class="impl"><a href="#impl-Send-for-ServiceRequest" class="anchor">§</a><h3 class="code-header">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a></h3></section><section id="impl-Sync-for-ServiceRequest" class="impl"><a href="#impl-Sync-for-ServiceRequest" class="anchor">§</a><h3 class="code-header">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a></h3></section><section id="impl-Unpin-for-ServiceRequest" class="impl"><a href="#impl-Unpin-for-ServiceRequest" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a></h3></section><section id="impl-UnwindSafe-for-ServiceRequest" class="impl"><a href="#impl-UnwindSafe-for-ServiceRequest" class="anchor">§</a><h3 class="code-header">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#140">source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
|
||
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#141">source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#208">source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#210">source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#216">source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217">source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#765">source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#768">source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Instrument-for-T" class="impl"><a href="#impl-Instrument-for-T" class="anchor">§</a><h3 class="code-header">impl<T> Instrument for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.instrument" class="method trait-impl"><a href="#method.instrument" class="anchor">§</a><h4 class="code-header">fn <a class="fn">instrument</a>(self, span: Span) -> Instrumented<Self></h4></section></summary><div class='docblock'>Instruments this type with the provided [<code>Span</code>], returning an
|
||
<code>Instrumented</code> wrapper. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.in_current_span" class="method trait-impl"><a href="#method.in_current_span" class="anchor">§</a><h4 class="code-header">fn <a class="fn">in_current_span</a>(self) -> Instrumented<Self></h4></section></summary><div class='docblock'>Instruments this type with the <a href="super::Span::current()">current</a> <a href="crate::Span"><code>Span</code></a>, returning an
|
||
<code>Instrumented</code> wrapper. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#748-750">source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#758">source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -> U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
|
||
<p>That is, this conversion is whatever the implementation of
|
||
<code><a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for U</code> chooses to do.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Same-for-T" class="impl"><a class="src rightside" href="https://docs.rs/typenum/1.17.0/src/typenum/type_operators.rs.html#34">source</a><a href="#impl-Same-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://docs.rs/typenum/1.17.0/typenum/type_operators/trait.Same.html" title="trait typenum::type_operators::Same">Same</a> for T</h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output" class="associatedtype trait-impl"><a href="#associatedtype.Output" class="anchor">§</a><h4 class="code-header">type <a href="https://docs.rs/typenum/1.17.0/typenum/type_operators/trait.Same.html#associatedtype.Output" class="associatedtype">Output</a> = T</h4></section></summary><div class='docblock'>Should always be <code>Self</code></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#805-807">source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-7" class="associatedtype trait-impl"><a href="#associatedtype.Error-7" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#812">source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#790-792">source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-6" class="associatedtype trait-impl"><a href="#associatedtype.Error-6" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#797">source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-VZip%3CV%3E-for-T" class="impl"><a href="#impl-VZip%3CV%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<V, T> VZip<V> for T<div class="where">where
|
||
V: MultiLane<T>,</div></h3></section></summary><div class="impl-items"><section id="method.vzip" class="method trait-impl"><a href="#method.vzip" class="anchor">§</a><h4 class="code-header">fn <a class="fn">vzip</a>(self) -> V</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithSubscriber-for-T" class="impl"><a href="#impl-WithSubscriber-for-T" class="anchor">§</a><h3 class="code-header">impl<T> WithSubscriber for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.with_subscriber" class="method trait-impl"><a href="#method.with_subscriber" class="anchor">§</a><h4 class="code-header">fn <a class="fn">with_subscriber</a><S>(self, subscriber: S) -> WithDispatch<Self><div class="where">where
|
||
S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><Dispatch>,</div></h4></section></summary><div class='docblock'>Attaches the provided <a href="super::Subscriber"><code>Subscriber</code></a> to this type, returning a
|
||
[<code>WithDispatch</code>] wrapper. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.with_current_subscriber" class="method trait-impl"><a href="#method.with_current_subscriber" class="anchor">§</a><h4 class="code-header">fn <a class="fn">with_current_subscriber</a>(self) -> WithDispatch<Self></h4></section></summary><div class='docblock'>Attaches the current <a href="crate::dispatcher#setting-the-default-subscriber">default</a> <a href="super::Subscriber"><code>Subscriber</code></a> to this type, returning a
|
||
[<code>WithDispatch</code>] wrapper. <a>Read more</a></div></details></div></details></div></section></div></main></body></html> |