Auto Generated Documentation

This commit is contained in:
github-actions[bot]
2021-03-22 03:10:14 +00:00
parent 7334bd1757
commit 8193a198a1
741 changed files with 3292 additions and 70875 deletions
+10 -7
View File
@@ -265,14 +265,17 @@ return type of the passed in function.</p>
<span class="ident">b</span>.<span class="ident">as_bytes</span>()
});
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">mapped_request</span>.<span class="ident">body</span>(), <span class="kw-2">&amp;</span><span class="string">&quot;some string&quot;</span>.<span class="ident">as_bytes</span>());</pre></div>
</div></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-Body" class="impl"><code class="in-band">impl&lt;B&gt; <a class="trait" href="../hyper/body/trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a> for <a class="struct" href="../hyper/struct.Request.html" title="struct hyper::Request">Request</a>&lt;B&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../hyper/body/trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>,&nbsp;</span></code><a href="#impl-Body" class="anchor"></a><a class="srclink" href="../src/http_body/lib.rs.html#173-204" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Data" class="type"><code>type <a href="../hyper/body/trait.HttpBody.html#associatedtype.Data" class="type">Data</a> = &lt;B as <a class="trait" href="../hyper/body/trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="type" href="../hyper/body/trait.HttpBody.html#associatedtype.Data" title="type hyper::body::HttpBody::Data">Data</a></code></h4><div class='docblock'><p>Values yielded by the <code>Body</code>.</p>
</div></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-Body" class="impl"><code class="in-band">impl&lt;B&gt; <a class="trait" href="../hyper/body/trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a> for <a class="struct" href="../hyper/struct.Request.html" title="struct hyper::Request">Request</a>&lt;B&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../hyper/body/trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>,&nbsp;</span></code><a href="#impl-Body" class="anchor"></a><a class="srclink" href="../src/http_body/lib.rs.html#210-241" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Data" class="type"><code>type <a href="../hyper/body/trait.HttpBody.html#associatedtype.Data" class="type">Data</a> = &lt;B as <a class="trait" href="../hyper/body/trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="type" href="../hyper/body/trait.HttpBody.html#associatedtype.Data" title="type hyper::body::HttpBody::Data">Data</a></code></h4><div class='docblock'><p>Values yielded by the <code>Body</code>.</p>
</div><h4 id="associatedtype.Error" class="type"><code>type <a href="../hyper/body/trait.HttpBody.html#associatedtype.Error" class="type">Error</a> = &lt;B as <a class="trait" href="../hyper/body/trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="type" href="../hyper/body/trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a></code></h4><div class='docblock'><p>The error type this <code>Body</code> might generate.</p>
</div><h4 id="method.poll_data" class="method hidden"><code>pub fn <a href="../hyper/body/trait.HttpBody.html#tymethod.poll_data" class="fnname">poll_data</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;self: <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;&amp;mut <a class="struct" href="../hyper/struct.Request.html" title="struct hyper::Request">Request</a>&lt;B&gt;&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;cx: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a>&lt;'_&gt;<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;<a class="struct" href="../hyper/struct.Request.html" title="struct hyper::Request">Request</a>&lt;B&gt; as <a class="trait" href="../hyper/body/trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="type" href="../hyper/body/trait.HttpBody.html#associatedtype.Data" title="type hyper::body::HttpBody::Data">Data</a>, &lt;<a class="struct" href="../hyper/struct.Request.html" title="struct hyper::Request">Request</a>&lt;B&gt; as <a class="trait" href="../hyper/body/trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="type" href="../hyper/body/trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a>&gt;&gt;&gt;</code><a class="srclink" href="../src/http_body/lib.rs.html#177-185" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Attempt to pull out the next data buffer of this stream.</p>
</div><h4 id="method.poll_trailers" class="method hidden"><code>pub fn <a href="../hyper/body/trait.HttpBody.html#tymethod.poll_trailers" class="fnname">poll_trailers</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;self: <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;&amp;mut <a class="struct" href="../hyper/struct.Request.html" title="struct hyper::Request">Request</a>&lt;B&gt;&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;cx: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a>&lt;'_&gt;<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../hyper/struct.HeaderMap.html" title="struct hyper::HeaderMap">HeaderMap</a>&lt;<a class="struct" href="../hyper/header/struct.HeaderValue.html" title="struct hyper::header::HeaderValue">HeaderValue</a>&gt;&gt;, &lt;<a class="struct" href="../hyper/struct.Request.html" title="struct hyper::Request">Request</a>&lt;B&gt; as <a class="trait" href="../hyper/body/trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="type" href="../hyper/body/trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a>&gt;&gt;</code><a class="srclink" href="../src/http_body/lib.rs.html#187-195" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Poll for an optional <strong>single</strong> <code>HeaderMap</code> of trailers. <a href="../hyper/body/trait.HttpBody.html#tymethod.poll_trailers">Read more</a></p>
</div><h4 id="method.is_end_stream" class="method hidden"><code>pub fn <a href="../hyper/body/trait.HttpBody.html#method.is_end_stream" class="fnname">is_end_stream</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../src/http_body/lib.rs.html#197-199" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns <code>true</code> when the end of stream has been reached. <a href="../hyper/body/trait.HttpBody.html#method.is_end_stream">Read more</a></p>
</div><h4 id="method.size_hint" class="method hidden"><code>pub fn <a href="../hyper/body/trait.HttpBody.html#method.size_hint" class="fnname">size_hint</a>(&amp;self) -&gt; <a class="struct" href="../hyper/body/struct.SizeHint.html" title="struct hyper::body::SizeHint">SizeHint</a></code><a class="srclink" href="../src/http_body/lib.rs.html#201-203" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns the bounds on the remaining length of the stream. <a href="../hyper/body/trait.HttpBody.html#method.size_hint">Read more</a></p>
</div><h4 id="method.data" class="method hidden"><code>pub fn <a href="../hyper/body/trait.HttpBody.html#method.data" class="fnname">data</a>(&amp;mut self) -&gt; <a class="struct" href="../http_body/next/struct.Data.html" title="struct http_body::next::Data">Data</a>&lt;'_, Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,&nbsp;</span></code><a class="srclink" href="../src/http_body/lib.rs.html#72-77" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns future that resolves to next data chunk, if any.</p>
</div><h4 id="method.trailers" class="method hidden"><code>pub fn <a href="../hyper/body/trait.HttpBody.html#method.trailers" class="fnname">trailers</a>(&amp;mut self) -&gt; <a class="struct" href="../http_body/next/struct.Trailers.html" title="struct http_body::next::Trailers">Trailers</a>&lt;'_, Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,&nbsp;</span></code><a class="srclink" href="../src/http_body/lib.rs.html#80-85" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns future that resolves to trailers, if any.</p>
</div><h4 id="method.poll_data" class="method hidden"><code>pub fn <a href="../hyper/body/trait.HttpBody.html#tymethod.poll_data" class="fnname">poll_data</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;self: <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;&amp;mut <a class="struct" href="../hyper/struct.Request.html" title="struct hyper::Request">Request</a>&lt;B&gt;&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;cx: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a>&lt;'_&gt;<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;<a class="struct" href="../hyper/struct.Request.html" title="struct hyper::Request">Request</a>&lt;B&gt; as <a class="trait" href="../hyper/body/trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="type" href="../hyper/body/trait.HttpBody.html#associatedtype.Data" title="type hyper::body::HttpBody::Data">Data</a>, &lt;<a class="struct" href="../hyper/struct.Request.html" title="struct hyper::Request">Request</a>&lt;B&gt; as <a class="trait" href="../hyper/body/trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="type" href="../hyper/body/trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a>&gt;&gt;&gt;</code><a class="srclink" href="../src/http_body/lib.rs.html#214-222" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Attempt to pull out the next data buffer of this stream.</p>
</div><h4 id="method.poll_trailers" class="method hidden"><code>pub fn <a href="../hyper/body/trait.HttpBody.html#tymethod.poll_trailers" class="fnname">poll_trailers</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;self: <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;&amp;mut <a class="struct" href="../hyper/struct.Request.html" title="struct hyper::Request">Request</a>&lt;B&gt;&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;cx: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a>&lt;'_&gt;<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../hyper/struct.HeaderMap.html" title="struct hyper::HeaderMap">HeaderMap</a>&lt;<a class="struct" href="../hyper/header/struct.HeaderValue.html" title="struct hyper::header::HeaderValue">HeaderValue</a>&gt;&gt;, &lt;<a class="struct" href="../hyper/struct.Request.html" title="struct hyper::Request">Request</a>&lt;B&gt; as <a class="trait" href="../hyper/body/trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="type" href="../hyper/body/trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a>&gt;&gt;</code><a class="srclink" href="../src/http_body/lib.rs.html#224-232" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Poll for an optional <strong>single</strong> <code>HeaderMap</code> of trailers. <a href="../hyper/body/trait.HttpBody.html#tymethod.poll_trailers">Read more</a></p>
</div><h4 id="method.is_end_stream" class="method hidden"><code>pub fn <a href="../hyper/body/trait.HttpBody.html#method.is_end_stream" class="fnname">is_end_stream</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../src/http_body/lib.rs.html#234-236" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns <code>true</code> when the end of stream has been reached. <a href="../hyper/body/trait.HttpBody.html#method.is_end_stream">Read more</a></p>
</div><h4 id="method.size_hint" class="method hidden"><code>pub fn <a href="../hyper/body/trait.HttpBody.html#method.size_hint" class="fnname">size_hint</a>(&amp;self) -&gt; <a class="struct" href="../hyper/body/struct.SizeHint.html" title="struct hyper::body::SizeHint">SizeHint</a></code><a class="srclink" href="../src/http_body/lib.rs.html#238-240" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns the bounds on the remaining length of the stream. <a href="../hyper/body/trait.HttpBody.html#method.size_hint">Read more</a></p>
</div><h4 id="method.data" class="method hidden"><code>pub fn <a href="../hyper/body/trait.HttpBody.html#method.data" class="fnname">data</a>(&amp;mut self) -&gt; <a class="struct" href="../http_body/next/struct.Data.html" title="struct http_body::next::Data">Data</a>&lt;'_, Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,&nbsp;</span></code><a class="srclink" href="../src/http_body/lib.rs.html#82-87" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns future that resolves to next data chunk, if any.</p>
</div><h4 id="method.trailers" class="method hidden"><code>pub fn <a href="../hyper/body/trait.HttpBody.html#method.trailers" class="fnname">trailers</a>(&amp;mut self) -&gt; <a class="struct" href="../http_body/next/struct.Trailers.html" title="struct http_body::next::Trailers">Trailers</a>&lt;'_, Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,&nbsp;</span></code><a class="srclink" href="../src/http_body/lib.rs.html#90-95" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns future that resolves to trailers, if any.</p>
</div><h4 id="method.map_data" class="method hidden"><code>pub fn <a href="../hyper/body/trait.HttpBody.html#method.map_data" class="fnname">map_data</a>&lt;F, B&gt;(self, f: F) -&gt; <a class="struct" href="../http_body/combinators/map_data/struct.MapData.html" title="struct http_body::combinators::map_data::MapData">MapData</a>&lt;Self, F&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../hyper/body/trait.HttpBody.html#associatedtype.Data" title="type hyper::body::HttpBody::Data">Data</a>) -&gt; B,<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../hyper/body/trait.Buf.html" title="trait hyper::body::Buf">Buf</a>,&nbsp;</span></code><a class="srclink" href="../src/http_body/lib.rs.html#98-105" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Maps this body's data value to a different value.</p>
</div><h4 id="method.map_err" class="method hidden"><code>pub fn <a href="../hyper/body/trait.HttpBody.html#method.map_err" class="fnname">map_err</a>&lt;F, E&gt;(self, f: F) -&gt; <a class="struct" href="../http_body/combinators/map_err/struct.MapErr.html" title="struct http_body::combinators::map_err::MapErr">MapErr</a>&lt;Self, F&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../hyper/body/trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a>) -&gt; E,&nbsp;</span></code><a class="srclink" href="../src/http_body/lib.rs.html#108-114" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Maps this body's error value to a different value.</p>
</div><h4 id="method.boxed" class="method hidden"><code>pub fn <a href="../hyper/body/trait.HttpBody.html#method.boxed" class="fnname">boxed</a>(self) -&gt; <a class="struct" href="../http_body/combinators/box_body/struct.BoxBody.html" title="struct http_body::combinators::box_body::BoxBody">BoxBody</a>&lt;Self::<a class="type" href="../hyper/body/trait.HttpBody.html#associatedtype.Data" title="type hyper::body::HttpBody::Data">Data</a>, Self::<a class="type" href="../hyper/body/trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + 'static,&nbsp;</span></code><a class="srclink" href="../src/http_body/lib.rs.html#117-122" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Turn this body into a boxed trait object.</p>
</div></div><h3 id="impl-Debug" class="impl"><code class="in-band">impl&lt;T&gt; <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="../hyper/struct.Request.html" title="struct hyper::Request">Request</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>,&nbsp;</span></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../src/http/request.rs.html#704-715" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</code><a class="srclink" href="../src/http/request.rs.html#705-714" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>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></p>
</div></div><h3 id="impl-Default" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="../hyper/struct.Request.html" title="struct hyper::Request">Request</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a>,&nbsp;</span></code><a href="#impl-Default" class="anchor"></a><a class="srclink" href="../src/http/request.rs.html#698-702" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.default" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default" class="fnname">default</a>() -&gt; <a class="struct" href="../hyper/struct.Request.html" title="struct hyper::Request">Request</a>&lt;T&gt;</code><a class="srclink" href="../src/http/request.rs.html#699-701" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns the &quot;default value&quot; for a type. <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default">Read more</a></p>
</div></div><h3 id="impl-Service%3CRequest%3CB%3E%3E" class="impl"><code class="in-band">impl&lt;C, B&gt; <a class="trait" href="../hyper/service/trait.Service.html" title="trait hyper::service::Service">Service</a>&lt;<a class="struct" href="../hyper/struct.Request.html" title="struct hyper::Request">Request</a>&lt;B&gt;&gt; for <a class="struct" href="../hyper/client/struct.Client.html" title="struct hyper::client::Client">Client</a>&lt;C, B&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;C: <a class="trait" href="../hyper/client/connect/trait.Connect.html" title="trait hyper::client::connect::Connect">Connect</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + 'static,<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../hyper/body/trait.HttpBody.html" title="trait hyper::body::HttpBody">HttpBody</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static,<br>&nbsp;&nbsp;&nbsp;&nbsp;B::<a class="type" href="../hyper/body/trait.HttpBody.html#associatedtype.Data" title="type hyper::body::HttpBody::Data">Data</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;B::<a class="type" href="../hyper/body/trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a>: <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="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/std/error/trait.Error.html" title="trait std::error::Error">StdError</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>&gt;&gt;,&nbsp;</span></code><a href="#impl-Service%3CRequest%3CB%3E%3E" class="anchor"></a><a class="srclink" href="../src/hyper/client/client.rs.html#506-524" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Response" class="type"><code>type <a href="../hyper/service/trait.Service.html#associatedtype.Response" class="type">Response</a> = <a class="struct" href="../hyper/struct.Response.html" title="struct hyper::Response">Response</a>&lt;<a class="struct" href="../hyper/body/struct.Body.html" title="struct hyper::body::Body">Body</a>&gt;</code></h4><div class='docblock'><p>Responses given by the service.</p>