1
0
mirror of https://github.com/actix/actix-website synced 2025-06-30 16:54:27 +02:00

update stable docs

This commit is contained in:
Nikolay Kim
2018-07-26 10:53:41 -07:00
parent 0c2153597f
commit 90165ac1cc
2025 changed files with 116162 additions and 2957 deletions

View File

@ -26,13 +26,13 @@
</h2>
<h3 id='impl' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="struct" href="../../actix_web/test/struct.TestRequest.html" title="struct actix_web::test::TestRequest">TestRequest</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;</code><a href='#impl' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/test.rs.html#439-458' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.with_uri' class="method"><span id='with_uri.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.with_uri' class='fnname'>with_uri</a>(path: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="../../actix_web/test/struct.TestRequest.html" title="struct actix_web::test::TestRequest">TestRequest</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/test.rs.html#441-443' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Create TestRequest and set request uri</p>
</div><h4 id='method.with_hdr' class="method"><span id='with_hdr.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.with_hdr' class='fnname'>with_hdr</a>&lt;H:&nbsp;Header&gt;(hdr: H) -&gt; <a class="struct" href="../../actix_web/test/struct.TestRequest.html" title="struct actix_web::test::TestRequest">TestRequest</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/test.rs.html#446-448' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Create TestRequest and set header</p>
</div><h4 id='method.with_header' class="method"><span id='with_header.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.with_header' class='fnname'>with_header</a>&lt;K, V&gt;(key: K, value: V) -&gt; <a class="struct" href="../../actix_web/test/struct.TestRequest.html" title="struct actix_web::test::TestRequest">TestRequest</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="struct" href="../../actix_web/http/header/struct.HeaderName.html" title="struct actix_web::http::header::HeaderName">HeaderName</a>: <a class="trait" href="https://docs.rs/http/0.1.7/http/convert/trait.HttpTryFrom.html" title="trait http::convert::HttpTryFrom">HttpTryFrom</a>&lt;K&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;V: IntoHeaderValue,&nbsp;</span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/test.rs.html#451-457' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Create TestRequest and set header</p>
</div><h4 id='method.with_header' class="method"><span id='with_header.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.with_header' class='fnname'>with_header</a>&lt;K, V&gt;(key: K, value: V) -&gt; <a class="struct" href="../../actix_web/test/struct.TestRequest.html" title="struct actix_web::test::TestRequest">TestRequest</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="struct" href="../../actix_web/http/header/struct.HeaderName.html" title="struct actix_web::http::header::HeaderName">HeaderName</a>: <a class="trait" href="https://docs.rs/http/0.1.8/http/convert/trait.HttpTryFrom.html" title="trait http::convert::HttpTryFrom">HttpTryFrom</a>&lt;K&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;V: IntoHeaderValue,&nbsp;</span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/test.rs.html#451-457' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Create TestRequest and set header</p>
</div></div><h3 id='impl-1' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;S:&nbsp;'static&gt; <a class="struct" href="../../actix_web/test/struct.TestRequest.html" title="struct actix_web::test::TestRequest">TestRequest</a>&lt;S&gt;</code><a href='#impl-1' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/test.rs.html#460-674' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.with_state' class="method"><span id='with_state.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.with_state' class='fnname'>with_state</a>(state: S) -&gt; <a class="struct" href="../../actix_web/test/struct.TestRequest.html" title="struct actix_web::test::TestRequest">TestRequest</a>&lt;S&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/test.rs.html#462-474' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Start HttpRequest build process with application state</p>
</div><h4 id='method.version' class="method"><span id='version.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.version' class='fnname'>version</a>(self, ver: <a class="struct" href="../../actix_web/http/struct.Version.html" title="struct actix_web::http::Version">Version</a>) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/test.rs.html#477-480' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Set HTTP version of this request</p>
</div><h4 id='method.method' class="method"><span id='method.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.method' class='fnname'>method</a>(self, meth: <a class="struct" href="../../actix_web/http/struct.Method.html" title="struct actix_web::http::Method">Method</a>) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/test.rs.html#483-486' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Set HTTP method of this request</p>
</div><h4 id='method.uri' class="method"><span id='uri.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.uri' class='fnname'>uri</a>(self, path: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/test.rs.html#489-492' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Set HTTP Uri of this request</p>
</div><h4 id='method.set' class="method"><span id='set.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.set' class='fnname'>set</a>&lt;H:&nbsp;Header&gt;(self, hdr: H) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/test.rs.html#495-501' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Set a header</p>
</div><h4 id='method.header' class="method"><span id='header.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.header' class='fnname'>header</a>&lt;K, V&gt;(self, key: K, value: V) -&gt; Self <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="struct" href="../../actix_web/http/header/struct.HeaderName.html" title="struct actix_web::http::header::HeaderName">HeaderName</a>: <a class="trait" href="https://docs.rs/http/0.1.7/http/convert/trait.HttpTryFrom.html" title="trait http::convert::HttpTryFrom">HttpTryFrom</a>&lt;K&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;V: IntoHeaderValue,&nbsp;</span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/test.rs.html#504-516' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Set a header</p>
</div><h4 id='method.header' class="method"><span id='header.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.header' class='fnname'>header</a>&lt;K, V&gt;(self, key: K, value: V) -&gt; Self <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="struct" href="../../actix_web/http/header/struct.HeaderName.html" title="struct actix_web::http::header::HeaderName">HeaderName</a>: <a class="trait" href="https://docs.rs/http/0.1.8/http/convert/trait.HttpTryFrom.html" title="trait http::convert::HttpTryFrom">HttpTryFrom</a>&lt;K&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;V: IntoHeaderValue,&nbsp;</span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/test.rs.html#504-516' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Set a header</p>
</div><h4 id='method.param' class="method"><span id='param.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.param' class='fnname'>param</a>(self, name: &amp;'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, value: &amp;'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/test.rs.html#519-522' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Set request path pattern parameter</p>
</div><h4 id='method.set_payload' class="method"><span id='set_payload.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.set_payload' class='fnname'>set_payload</a>&lt;B:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="enum" href="../../actix_web/enum.Binary.html" title="enum actix_web::Binary">Binary</a>&gt;&gt;(self, data: B) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/test.rs.html#525-531' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Set request payload</p>
</div><h4 id='method.prefix' class="method"><span id='prefix.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.prefix' class='fnname'>prefix</a>(self, prefix: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/test.rs.html#534-537' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Set request's prefix</p>