<!DOCTYPE html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><metaname="generator"content="rustdoc"><metaname="description"content="API documentation for the Rust `HttpResponse` struct in crate `actix_web`."><metaname="keywords"content="rust, rustlang, rust-lang, HttpResponse"><title>actix_web::HttpResponse - Rust</title><linkrel="stylesheet"type="text/css"href="../normalize.css"><linkrel="stylesheet"type="text/css"href="../rustdoc.css"id="mainThemeStyle"><linkrel="stylesheet"type="text/css"href="../dark.css"><linkrel="stylesheet"type="text/css"href="../light.css"id="themeStyle"><scriptsrc="../storage.js"></script></head><bodyclass="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="sidebar"><divclass="sidebar-menu">☰</div><pclass='location'>Struct HttpResponse</p><divclass="sidebar-elems"><divclass="block items"><aclass="sidebar-title"href="#methods">Methods</a><divclass="sidebar-links"><ahref="#method.Ok">Ok</a><ahref="#method.Created">Created</a><ahref="#method.Accepted">Accepted</a><ahref="#method.NonAuthoritativeInformation">NonAuthoritativeInformation</a><ahref="#method.NoContent">NoContent</a><ahref="#method.ResetContent">ResetContent</a><ahref="#method.PartialContent">PartialContent</a><ahref="#method.MultiStatus">MultiStatus</a><ahref="#method.AlreadyReported">AlreadyReported</a><ahref="#method.MultipleChoices">MultipleChoices</a><ahref="#method.MovedPermanenty">MovedPermanenty</a><ahref="#method.MovedPermanently">MovedPermanently</a><ahref="#method.Found">Found</a><ahref="#method.SeeOther">SeeOther</a><ahref="#method.NotModified">NotModified</a><ahref="#method.UseProxy">UseProxy</a><ahref="#method.TemporaryRedirect">TemporaryRedirect</a><ahref="#method.PermanentRedirect">PermanentRedirect</a><ahref="#method.BadRequest">BadRequest</a><ahref="#method.NotFound">NotFound</a><ahref="#method.Unauthorized">Unauthorized</a><ahref="#method.PaymentRequired">PaymentRequired</a><ahref="#method.Forbidden">Forbidden</a><ahref="#method.MethodNotAllowed">MethodNotAllowed</a><ahref="#method.NotAcceptable">NotAcceptable</a><ahref="#method.ProxyAuthenticationRequired">ProxyAuthenticationRequired</a><ahref="#method.RequestTimeout">RequestTimeout</a><ahref="#method.Conflict">Conflict</a><ahref="#method.Gone">Gone</a><ahref="#method.LengthRequired">LengthRequired</a><ahref="#method.PreconditionFailed">PreconditionFailed</a><ahref="#method.PayloadTooLarge">PayloadTooLarge</a><ahref="#method.UriTooLong">UriTooLong</a><ahref="#method.UnsupportedMediaType">UnsupportedMediaType</a><ahref="#method.RangeNotSatisfiable">RangeNotSatisfiable</a><ahref="#method.ExpectationFailed">ExpectationFailed</a><ahref="#method.InternalServerError">InternalServerError</a><ahref="#method.NotImplemented">NotImplemented</a><ahref="#method.BadGateway">BadGateway</a><ahref="#method.ServiceUnavailable">ServiceUnavailable</a><ahref="#method.GatewayTimeout">GatewayTimeout</a><ahref="#method.VersionNotSupported">VersionNotSupported</a><ahref="#method.VariantAlsoNegotiates">VariantAlsoNegotiates</a><ahref="#method.InsufficientStorage">InsufficientStorage</a><ahref="#method.LoopDetected">LoopDetected</a><ahref="#method.build">build</a><ahref="#method.build_from">build_from</a><ahref="#method.new">new</a><ahref="#method.with_body">with_body</a><ahref="#method.from_error">from_error</a><ahref="#method.into_builder">into_builder</a><ahref="#method.error">error</a><ahref="#method.version">version</a><ahref="#method.headers">headers</a><ahref="#method.headers_mut">headers_mut</a><ahref="#method.cookies">cookies</a><ahref="#method.add_cookie">add_cookie</a><ahref="#method.del_cookie">del_cookie</a><ahref="#method.status">status</a><ahref="#method.status_mut">status_mut</a><ahref="#method.reason">reason</a><ahref="#method.set_reason">set_reason</a><ahref="#method.set_connection_type">set_connection_type
</div><h4id='method.into_builder'class="method"><spanid='into_builder.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.into_builder'class='fnname'>into_builder</a>(self) -><aclass="struct"href="../actix_web/dev/struct.HttpResponseBuilder.html"title="struct actix_web::dev::HttpResponseBuilder">HttpResponseBuilder</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='../src/actix_web/httpresponse.rs.html#85-104'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Convert <code>HttpResponse</code> to a <code>HttpResponseBuilder</code></p>
</div><h4id='method.error'class="method"><spanid='error.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.error'class='fnname'>error</a>(&self) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><&<aclass="struct"href="../actix_web/error/struct.Error.html"title="struct actix_web::error::Error">Error</a>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='../src/actix_web/httpresponse.rs.html#108-110'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>The source <code>error</code> for this response</p>
</div><h4id='method.version'class="method"><spanid='version.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.version'class='fnname'>version</a>(&self) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="struct"href="../actix_web/http/struct.Version.html"title="struct actix_web::http::Version">Version</a>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='../src/actix_web/httpresponse.rs.html#114-116'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Get the HTTP version of this response</p>
</div><h4id='method.headers'class="method"><spanid='headers.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.headers'class='fnname'>headers</a>(&self) ->&<aclass="struct"href="../actix_web/http/header/struct.HeaderMap.html"title="struct actix_web::http::header::HeaderMap">HeaderMap</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='../src/actix_web/httpresponse.rs.html#120-122'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Get the headers from the response</p>
</div><h4id='method.headers_mut'class="method"><spanid='headers_mut.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.headers_mut'class='fnname'>headers_mut</a>(&mut self) ->&mut <aclass="struct"href="../actix_web/http/header/struct.HeaderMap.html"title="struct actix_web::http::header::HeaderMap">HeaderMap</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='../src/actix_web/httpresponse.rs.html#126-128'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Get a mutable reference to the headers</p>
</div><h4id='method.cookies'class="method"><spanid='cookies.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.cookies'class='fnname'>cookies</a>(&self) -> CookieIter</code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='../src/actix_web/httpresponse.rs.html#132-136'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Get an iterator for the cookies set by this response</p>
</div><h4id='method.del_cookie'class="method"><spanid='del_cookie.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.del_cookie'class='fnname'>del_cookie</a>(&mut self, name: &<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='../src/actix_web/httpresponse.rs.html#152-174'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Remove all cookies with the given name from this response. Returns
the number of cookies removed.</p>
</div><h4id='method.status'class="method"><spanid='status.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.status'class='fnname'>status</a>(&self) -><aclass="struct"href="../actix_web/http/struct.StatusCode.html"title="struct actix_web::http::StatusCode">StatusCode</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='../src/actix_web/httpresponse.rs.html#178-180'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Get the response status code</p>
</div><h4id='method.status_mut'class="method"><spanid='status_mut.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.status_mut'class='fnname'>status_mut</a>(&mut self) ->&mut <aclass="struct"href="../actix_web/http/struct.StatusCode.html"title="struct actix_web::http::StatusCode">StatusCode</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='../src/actix_web/httpresponse.rs.html#184-186'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Set the <code>StatusCode</code> for this response</p>
</div><h4id='method.reason'class="method"><spanid='reason.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.reason'class='fnname'>reason</a>(&self) ->&<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='../src/actix_web/httpresponse.rs.html#190-199'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Get custom reason for the response</p>
</div><h4id='method.set_reason'class="method"><divclass="important-traits"><divclass='tooltip'>ⓘ<spanclass='tooltiptext'>Important traits for <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>R</span></div><divclass="content hidden"><h3class="important">Important traits for <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>R</h3><codeclass="content"><spanclass="where fmt-newline">impl<'a, R><aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html"title="trait std::io::Read">Read</a> for <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>R <spanclass="where fmt-newline">where<br> R: <aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html"title="trait std::io::Read">Read</a> + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></span><spanclass="where fmt-newline">impl<'a, W><aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html"title="trait std::io::Write">Write</a> for <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>W <spanclass="where fmt-newline">where<br> W: <aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html"title="trait std::io::Write">Write</a> + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></span><spanclass="where fmt-newline">impl<'a, I><aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html"title="trait core::iter::iterator::Iterator">Iterator</a> for <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>I <spanclass="where fmt-newline">where<br> I: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html"title="trait core::iter::iterator::Iterator">Iterator</a> + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></span><spanclass="where fmt-newline"> type <ahref='https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item'class="type">Item</a> = <I as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html"title="trait core::iter::iterator::Iterator">Iterator</a>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item"title="type core::iter::iterator::Iterator::Item">Item</a>;</span></code></div></div><spanid='set_reason.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.set_reason'class='fnname'>set_reason</a>(&mut self, reason: &'static <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>Self</code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='../src/actix_web/httpresponse.rs.html#203-206'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Set the custom reason for the response</p>
</div><h4id='method.keep_alive'class="method"><spanid='keep_alive.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.keep_alive'class='fnname'>keep_alive</a>(&self) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='../src/actix_web/httpresponse.rs.html#221-230'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Keep-alive status for this connection</p>
</div><h4id='method.body'class="method"><spanid='body.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.body'class='fnname'>body</a>(&self) ->&<aclass="enum"href="../actix_web/enum.Body.html"title="enum actix_web::Body">Body</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='../src/actix_web/httpresponse.rs.html#252-254'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Get body os this response</p>
</div><h4id='method.replace_body'class="method"><spanid='replace_body.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.replace_body'class='fnname'>replace_body</a><B: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><<aclass="enum"href="../actix_web/enum.Body.html"title="enum actix_web::Body">Body</a>>>(&mut self, body: B) -><aclass="enum"href="../actix_web/enum.Body.html"title="enum actix_web::Body">Body</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='../src/actix_web/httpresponse.rs.html#262-264'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Set a body and return previous body value</p>
</div><h4id='method.response_size'class="method"><spanid='response_size.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.response_size'class='fnname'>response_size</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='../src/actix_web/httpresponse.rs.html#267-269'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Size of response in bytes, excluding HTTP headers</p>
<divclass='docblock'><p>The associated error which can be returned.</p>
</div><h4id='method.respond_to'class="method"><spanid='respond_to.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='../actix_web/trait.Responder.html#tymethod.respond_to'class='fnname'>respond_to</a><S>(<br> self, <br> _: &<aclass="struct"href="../actix_web/struct.HttpRequest.html"title="struct actix_web::HttpRequest">HttpRequest</a><S><br>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="struct"href="../actix_web/dev/struct.AsyncResult.html"title="struct actix_web::dev::AsyncResult">AsyncResult</a><<aclass="struct"href="../actix_web/struct.HttpResponse.html"title="struct actix_web::HttpResponse">HttpResponse</a>>, <aclass="struct"href="../actix_web/error/struct.Error.html"title="struct actix_web::error::Error">Error</a>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='../src/actix_web/handler.rs.html#307-311'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Convert itself to <code>AsyncResult</code> or <code>Error</code>.</p>
</div></div><h3id='impl-Debug'class='impl'><spanclass='in-band'><tableclass='table-display'><tbody><tr><td><code>impl <aclass="trait"href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html"title="trait core::fmt::Debug">Debug</a> for <aclass="struct"href="../actix_web/struct.HttpResponse.html"title="struct actix_web::HttpResponse">HttpResponse</a></code><ahref='#impl-Debug'class='anchor'></a></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='../src/actix_web/httpresponse.rs.html#302-318'title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><divclass='impl-items'><h4id='method.fmt'class="method"><spanid='fmt.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt'class='fnname'>fmt</a>(&self, f: &mut <aclass="struct"href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html"title="struct core::fmt::Formatter">Formatter</a>) -><aclass="type"href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html"title="type core::fmt::Result">Result</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='../src/actix_web/httpresponse.rs.html#303-317'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Formats the value using the given formatter. <ahref="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></div><h3id='impl-From%3CError%3E'class='impl'><spanclass='in-band'><tableclass='table-display'><tbody><tr><td><code>impl <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html"title="trait core::convert::From">From</a><<aclass="struct"href="../actix_web/error/struct.Error.html"title="struct actix_web::error::Error">Error</a>> for <aclass="struct"href="../actix_web/struct.HttpResponse.html"title="struct actix_web::HttpResponse">HttpResponse</a></code><ahref='#impl-From%3CError%3E'class='anchor'></a></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='../src/actix_web/error.rs.html#172-176'title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><divclass='docblock'><p>Convert <code>Error</code> to a <code>HttpResponse</code> instance</p>
</div><divclass='impl-items'><h4id='method.from-8'class="method"><spanid='from.v-8'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from'class='fnname'>from</a>(err: <aclass="struct"href="../actix_web/error/struct.Error.html"title="struct actix_web::error::Error">Error</a>) -> Self</code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='../src/actix_web/error.rs.html#173-175'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Performs the conversion.</p>
Auto Trait Implementations<ahref='#synthetic-implementations'class='anchor'></a>
</h2>
<divid='synthetic-implementations-list'>
<h3id='impl-Send'class='impl'><spanclass='in-band'><tableclass='table-display'><tbody><tr><td><code>impl !<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html"title="trait core::marker::Send">Send</a> for <aclass="struct"href="../actix_web/struct.HttpResponse.html"title="struct actix_web::HttpResponse">HttpResponse</a></code><ahref='#impl-Send'class='anchor'></a></span></td><td><spanclass='out-of-band'></span></td></tr></tbody></table></h3><divclass='impl-items'></div><h3id='impl-Sync'class='impl'><spanclass='in-band'><tableclass='table-display'><tbody><tr><td><code>impl !<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html"title="trait core::marker::Sync">Sync</a> for <aclass="struct"href="../actix_web/struct.HttpResponse.html"title="struct actix_web::HttpResponse">HttpResponse</a></code><ahref='#impl-Sync'class='anchor'></a></span></td><td><spanclass='out-of-band'></span></td></tr></tbody></table></h3><divclass='impl-items'></div></div></section><sectionid="search"class="content hidden"></section><sectionclass="footer"></section><asideid="help"class="hidden"><div><h1class="hidden">Help</h1><divclass="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><divclass="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath="../";window.currentCrate="actix_web";</script><scriptsrc="../aliases.js"></script><scriptsrc="../main.js"></script><scriptdefersrc="../search-index.js"></script></body></html>