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:
@ -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><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></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: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../../actix_web/test/struct.TestRequest.html" title="struct actix_web::test::TestRequest">TestRequest</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></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><H: Header>(hdr: H) -> <a class="struct" href="../../actix_web/test/struct.TestRequest.html" title="struct actix_web::test::TestRequest">TestRequest</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></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><K, V>(key: K, value: V) -> <a class="struct" href="../../actix_web/test/struct.TestRequest.html" title="struct actix_web::test::TestRequest">TestRequest</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> <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><K>,<br> V: IntoHeaderValue, </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><K, V>(key: K, value: V) -> <a class="struct" href="../../actix_web/test/struct.TestRequest.html" title="struct actix_web::test::TestRequest">TestRequest</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> <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><K>,<br> V: IntoHeaderValue, </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<S: 'static> <a class="struct" href="../../actix_web/test/struct.TestRequest.html" title="struct actix_web::test::TestRequest">TestRequest</a><S></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) -> <a class="struct" href="../../actix_web/test/struct.TestRequest.html" title="struct actix_web::test::TestRequest">TestRequest</a><S></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>) -> 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>) -> 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: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> 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><H: Header>(self, hdr: H) -> 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><K, V>(self, key: K, value: V) -> Self <span class="where fmt-newline">where<br> <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><K>,<br> V: IntoHeaderValue, </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><K, V>(self, key: K, value: V) -> Self <span class="where fmt-newline">where<br> <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><K>,<br> V: IntoHeaderValue, </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: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, value: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> 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><B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="enum" href="../../actix_web/enum.Binary.html" title="enum actix_web::Binary">Binary</a>>>(self, data: B) -> 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>) -> 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>
|
||||
|
Reference in New Issue
Block a user