1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-05-09 03:53:00 +00:00

Deploying to gh-pages from @ actix/actix-web@ba7fd048b6 🚀

This commit is contained in:
github-merge-queue[bot] 2024-04-15 01:24:42 +00:00
commit 16d0096f03
1712 changed files with 213691 additions and 0 deletions

0
.lock Normal file
View file

0
.nojekyll Normal file
View file

1
actix_files/all.html Normal file
View file

@ -0,0 +1 @@
<!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="List of all items in this crate"><title>List of all items in this crate</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-2c208a72533b4dd0.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="actix_files" data-themes="" data-resource-suffix="" data-rustdoc-version="1.79.0-nightly (0d8b3346a 2024-04-14)" data-channel="nightly" data-search-js="search-ffac13a0df2b1870.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-e32f0c247825364d.js"></script><script defer src="../static.files/main-c97aec732c613ca4.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-09095024cf37855e.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></head><body class="rustdoc mod sys"><!--[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_files/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_files/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2><a href="../actix_files/index.html">actix_files</a><span class="version">0.6.5</span></h2></div><div class="sidebar-elems"><section><ul class="block"><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></section></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../actix_files/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><h1>List of all items</h1><h3 id="structs">Structs</h3><ul class="all-items"><li><a href="struct.Directory.html">Directory</a></li><li><a href="struct.Files.html">Files</a></li><li><a href="struct.FilesService.html">FilesService</a></li><li><a href="struct.HttpRange.html">HttpRange</a></li><li><a href="struct.NamedFile.html">NamedFile</a></li></ul><h3 id="functions">Functions</h3><ul class="all-items"><li><a href="fn.file_extension_to_mime.html">file_extension_to_mime</a></li></ul></section></div></main></body></html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../actix_files/struct.Directory.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../actix_files/struct.Directory.html">../../actix_files/struct.Directory.html</a>...</p>
<script>location.replace("../../actix_files/struct.Directory.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../actix_files/struct.Files.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../actix_files/struct.Files.html">../../actix_files/struct.Files.html</a>...</p>
<script>location.replace("../../actix_files/struct.Files.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,4 @@
<!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="Return the MIME type associated with a filename extension (case-insensitive). If `ext` is empty or no associated type for the extension was found, returns the type `application/octet-stream`."><title>file_extension_to_mime in actix_files - 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-2c208a72533b4dd0.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="actix_files" data-themes="" data-resource-suffix="" data-rustdoc-version="1.79.0-nightly (0d8b3346a 2024-04-14)" data-channel="nightly" data-search-js="search-ffac13a0df2b1870.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-c97aec732c613ca4.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-09095024cf37855e.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></head><body class="rustdoc fn"><!--[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_files/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_files/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2><a href="../actix_files/index.html">actix_files</a><span class="version">0.6.5</span></h2></div><div class="sidebar-elems"></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../actix_files/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="index.html">actix_files</a>::<wbr><a class="fn" href="#">file_extension_to_mime</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_files/lib.rs.html#57-59">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub fn file_extension_to_mime(ext: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="https://docs.rs/mime/0.3.17/mime/struct.Mime.html" title="struct mime::Mime">Mime</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Return the MIME type associated with a filename extension (case-insensitive).
If <code>ext</code> is empty or no associated type for the extension was found, returns
the type <code>application/octet-stream</code>.</p>
</div></details></section></div></main></body></html>

11
actix_files/index.html Normal file
View file

@ -0,0 +1,11 @@
<!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="Static file serving for Actix Web."><title>actix_files - 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-2c208a72533b4dd0.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="actix_files" data-themes="" data-resource-suffix="" data-rustdoc-version="1.79.0-nightly (0d8b3346a 2024-04-14)" data-channel="nightly" data-search-js="search-ffac13a0df2b1870.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-e32f0c247825364d.js"></script><script defer src="../crates.js"></script><script defer src="../static.files/main-c97aec732c613ca4.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-09095024cf37855e.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></head><body class="rustdoc mod crate"><!--[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_files/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_files/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2><a href="../actix_files/index.html">actix_files</a><span class="version">0.6.5</span></h2></div><div class="sidebar-elems"><ul class="block"><li><a id="all-types" href="all.html">All Items</a></li></ul><section><ul class="block"><li><a href="#reexports">Re-exports</a></li><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></section></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../actix_files/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Crate <a class="mod" href="#">actix_files</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_files/lib.rs.html#1-1039">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Static file serving for Actix Web.</p>
<p>Provides a non-blocking service for serving static files from disk.</p>
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>actix_web::App;
<span class="kw">use </span>actix_files::Files;
<span class="kw">let </span>app = App::new()
.service(Files::new(<span class="string">"/static"</span>, <span class="string">"."</span>).prefer_utf8(<span class="bool-val">true</span>));</code></pre></div>
</div></details><h2 id="reexports" class="section-header">Re-exports<a href="#reexports" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name" id="reexport.ChunkedReadFile"><code>pub use self::chunked::ChunkedReadFile;</code></div></li></ul><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.Directory.html" title="struct actix_files::Directory">Directory</a></div><div class="desc docblock-short">A directory; responds with the generated directory listing.</div></li><li><div class="item-name"><a class="struct" href="struct.Files.html" title="struct actix_files::Files">Files</a></div><div class="desc docblock-short">Static files handling service.</div></li><li><div class="item-name"><a class="struct" href="struct.FilesService.html" title="struct actix_files::FilesService">FilesService</a></div><div class="desc docblock-short">Assembled file serving service.</div></li><li><div class="item-name"><a class="struct" href="struct.HttpRange.html" title="struct actix_files::HttpRange">HttpRange</a></div><div class="desc docblock-short">HTTP Range header representation.</div></li><li><div class="item-name"><a class="struct" href="struct.NamedFile.html" title="struct actix_files::NamedFile">NamedFile</a></div><div class="desc docblock-short">A file with an associated name.</div></li></ul><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="fn" href="fn.file_extension_to_mime.html" title="fn actix_files::file_extension_to_mime">file_extension_to_mime</a></div><div class="desc docblock-short">Return the MIME type associated with a filename extension (case-insensitive).
If <code>ext</code> is empty or no associated type for the extension was found, returns
the type <code>application/octet-stream</code>.</div></li></ul></section></div></main></body></html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../actix_files/struct.NamedFile.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../actix_files/struct.NamedFile.html">../../actix_files/struct.NamedFile.html</a>...</p>
<script>location.replace("../../actix_files/struct.NamedFile.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../actix_files/struct.HttpRange.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../actix_files/struct.HttpRange.html">../../actix_files/struct.HttpRange.html</a>...</p>
<script>location.replace("../../actix_files/struct.HttpRange.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../actix_files/struct.FilesService.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../actix_files/struct.FilesService.html">../../actix_files/struct.FilesService.html</a>...</p>
<script>location.replace("../../actix_files/struct.FilesService.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"fn":["file_extension_to_mime"],"struct":["Directory","Files","FilesService","HttpRange","NamedFile"]};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
actix_http/all.html Normal file

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_http/body/struct.BodyStream.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_http/body/struct.BodyStream.html">../../../actix_http/body/struct.BodyStream.html</a>...</p>
<script>location.replace("../../../actix_http/body/struct.BodyStream.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_http/body/struct.BoxBody.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_http/body/struct.BoxBody.html">../../../actix_http/body/struct.BoxBody.html</a>...</p>
<script>location.replace("../../../actix_http/body/struct.BoxBody.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_http/body/enum.EitherBody.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_http/body/enum.EitherBody.html">../../../actix_http/body/enum.EitherBody.html</a>...</p>
<script>location.replace("../../../actix_http/body/enum.EitherBody.html" + location.search + location.hash);</script>
</body>
</html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,15 @@
<!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="Collects all the bytes produced by `body`."><title>to_bytes in actix_http::body - 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-2c208a72533b4dd0.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="actix_http" data-themes="" data-resource-suffix="" data-rustdoc-version="1.79.0-nightly (0d8b3346a 2024-04-14)" data-channel="nightly" data-search-js="search-ffac13a0df2b1870.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-c97aec732c613ca4.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></head><body class="rustdoc fn"><!--[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_http/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_http/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2><a href="../../actix_http/index.html">actix_http</a><span class="version">3.6.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In actix_http::body</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../actix_http/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../index.html">actix_http</a>::<wbr><a href="index.html">body</a>::<wbr><a class="fn" href="#">to_bytes</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_http/body/utils.rs.html#33-37">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub async fn to_bytes&lt;B: <a class="trait" href="trait.MessageBody.html" title="trait actix_http::body::MessageBody">MessageBody</a>&gt;(body: B) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Bytes, B::<a class="associatedtype" href="trait.MessageBody.html#associatedtype.Error" title="type actix_http::body::MessageBody::Error">Error</a>&gt;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Collects all the bytes produced by <code>body</code>.</p>
<p>Any errors produced by the body stream are returned immediately.</p>
<p>Consider using <a href="fn.to_bytes_limited.html" title="fn actix_http::body::to_bytes_limited"><code>to_bytes_limited</code></a> instead to protect against memory exhaustion.</p>
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>actix_http::body::{<span class="self">self</span>, to_bytes};
<span class="kw">use </span>bytes::Bytes;
<span class="kw">let </span>body = body::None::new();
<span class="kw">let </span>bytes = to_bytes(body).<span class="kw">await</span>.unwrap();
<span class="macro">assert!</span>(bytes.is_empty());
<span class="kw">let </span>body = Bytes::from_static(<span class="string">b"123"</span>);
<span class="kw">let </span>bytes = to_bytes(body).<span class="kw">await</span>.unwrap();
<span class="macro">assert_eq!</span>(bytes, <span class="string">"123"</span>);</code></pre></div>
</div></details></section></div></main></body></html>

View file

@ -0,0 +1,22 @@
<!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="Collects the bytes produced by `body`, up to `limit` bytes."><title>to_bytes_limited in actix_http::body - 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-2c208a72533b4dd0.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="actix_http" data-themes="" data-resource-suffix="" data-rustdoc-version="1.79.0-nightly (0d8b3346a 2024-04-14)" data-channel="nightly" data-search-js="search-ffac13a0df2b1870.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-c97aec732c613ca4.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></head><body class="rustdoc fn"><!--[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_http/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_http/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2><a href="../../actix_http/index.html">actix_http</a><span class="version">3.6.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In actix_http::body</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../actix_http/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../index.html">actix_http</a>::<wbr><a href="index.html">body</a>::<wbr><a class="fn" href="#">to_bytes_limited</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_http/body/utils.rs.html#71-119">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub async fn to_bytes_limited&lt;B: <a class="trait" href="trait.MessageBody.html" title="trait actix_http::body::MessageBody">MessageBody</a>&gt;(
body: B,
limit: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>
) -&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="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Bytes, B::<a class="associatedtype" href="trait.MessageBody.html#associatedtype.Error" title="type actix_http::body::MessageBody::Error">Error</a>&gt;, <a class="struct" href="struct.BodyLimitExceeded.html" title="struct actix_http::body::BodyLimitExceeded">BodyLimitExceeded</a>&gt;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Collects the bytes produced by <code>body</code>, up to <code>limit</code> bytes.</p>
<p>If a chunk read from <code>poll_next</code> causes the total number of bytes read to exceed <code>limit</code>, an
<code>Err(BodyLimitExceeded)</code> is returned.</p>
<p>Any errors produced by the body stream are returned immediately as <code>Ok(Err(B::Error))</code>.</p>
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>actix_http::body::{<span class="self">self</span>, to_bytes_limited};
<span class="kw">use </span>bytes::Bytes;
<span class="kw">let </span>body = body::None::new();
<span class="kw">let </span>bytes = to_bytes_limited(body, <span class="number">10</span>).<span class="kw">await</span>.unwrap().unwrap();
<span class="macro">assert!</span>(bytes.is_empty());
<span class="kw">let </span>body = Bytes::from_static(<span class="string">b"123"</span>);
<span class="kw">let </span>bytes = to_bytes_limited(body, <span class="number">10</span>).<span class="kw">await</span>.unwrap().unwrap();
<span class="macro">assert_eq!</span>(bytes, <span class="string">"123"</span>);
<span class="kw">let </span>body = Bytes::from_static(<span class="string">b"123"</span>);
<span class="macro">assert!</span>(to_bytes_limited(body, <span class="number">2</span>).<span class="kw">await</span>.is_err());</code></pre></div>
</div></details></section></div></main></body></html>

View file

@ -0,0 +1,3 @@
<!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="Traits and structures to aid consuming and writing HTTP payloads."><title>actix_http::body - 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-2c208a72533b4dd0.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="actix_http" data-themes="" data-resource-suffix="" data-rustdoc-version="1.79.0-nightly (0d8b3346a 2024-04-14)" data-channel="nightly" data-search-js="search-ffac13a0df2b1870.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-c97aec732c613ca4.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></head><body class="rustdoc mod"><!--[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_http/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_http/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2><a href="../../actix_http/index.html">actix_http</a><span class="version">3.6.0</span></h2></div><h2 class="location"><a href="#">Module body</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#traits">Traits</a></li><li><a href="#functions">Functions</a></li></ul></section><h2><a href="../index.html">In crate actix_http</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../actix_http/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../index.html">actix_http</a>::<wbr><a class="mod" href="#">body</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_http/body/mod.rs.html#1-27">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Traits and structures to aid consuming and writing HTTP payloads.</p>
<p>“Body” and “payload” are used somewhat interchangeably in this documentation.</p>
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.BodyLimitExceeded.html" title="struct actix_http::body::BodyLimitExceeded">BodyLimitExceeded</a></div><div class="desc docblock-short">Error type returned from <a href="fn.to_bytes_limited.html" title="fn actix_http::body::to_bytes_limited"><code>to_bytes_limited</code></a> when body produced exceeds limit.</div></li><li><div class="item-name"><a class="struct" href="struct.BodyStream.html" title="struct actix_http::body::BodyStream">BodyStream</a></div><div class="desc docblock-short">Streaming response wrapper.</div></li><li><div class="item-name"><a class="struct" href="struct.BoxBody.html" title="struct actix_http::body::BoxBody">BoxBody</a></div><div class="desc docblock-short">A boxed message body with boxed errors.</div></li><li><div class="item-name"><a class="struct" href="struct.None.html" title="struct actix_http::body::None">None</a></div><div class="desc docblock-short">Body type for responses that forbid payloads.</div></li><li><div class="item-name"><a class="struct" href="struct.SizedStream.html" title="struct actix_http::body::SizedStream">SizedStream</a></div><div class="desc docblock-short">Known sized streaming response wrapper.</div></li></ul><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="enum" href="enum.BodySize.html" title="enum actix_http::body::BodySize">BodySize</a></div><div class="desc docblock-short">Body size hint.</div></li><li><div class="item-name"><a class="enum" href="enum.EitherBody.html" title="enum actix_http::body::EitherBody">EitherBody</a></div><div class="desc docblock-short">An “either” type specialized for body types.</div></li></ul><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="trait" href="trait.MessageBody.html" title="trait actix_http::body::MessageBody">MessageBody</a></div><div class="desc docblock-short">An interface for types that can be used as a response body.</div></li></ul><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="fn" href="fn.to_bytes.html" title="fn actix_http::body::to_bytes">to_bytes</a></div><div class="desc docblock-short">Collects all the bytes produced by <code>body</code>.</div></li><li><div class="item-name"><a class="fn" href="fn.to_bytes_limited.html" title="fn actix_http::body::to_bytes_limited">to_bytes_limited</a></div><div class="desc docblock-short">Collects the bytes produced by <code>body</code>, up to <code>limit</code> bytes.</div></li></ul></section></div></main></body></html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_http/body/trait.MessageBody.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_http/body/trait.MessageBody.html">../../../actix_http/body/trait.MessageBody.html</a>...</p>
<script>location.replace("../../../actix_http/body/trait.MessageBody.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_http/body/struct.None.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_http/body/struct.None.html">../../../actix_http/body/struct.None.html</a>...</p>
<script>location.replace("../../../actix_http/body/struct.None.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"enum":["BodySize","EitherBody"],"fn":["to_bytes","to_bytes_limited"],"struct":["BodyLimitExceeded","BodyStream","BoxBody","None","SizedStream"],"trait":["MessageBody"]};

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_http/body/enum.BodySize.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_http/body/enum.BodySize.html">../../../actix_http/body/enum.BodySize.html</a>...</p>
<script>location.replace("../../../actix_http/body/enum.BodySize.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_http/body/struct.SizedStream.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_http/body/struct.SizedStream.html">../../../actix_http/body/struct.SizedStream.html</a>...</p>
<script>location.replace("../../../actix_http/body/struct.SizedStream.html" + location.search + location.hash);</script>
</body>
</html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_http/body/fn.to_bytes.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_http/body/fn.to_bytes.html">../../../actix_http/body/fn.to_bytes.html</a>...</p>
<script>location.replace("../../../actix_http/body/fn.to_bytes.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_http/body/fn.to_bytes_limited.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_http/body/fn.to_bytes_limited.html">../../../actix_http/body/fn.to_bytes_limited.html</a>...</p>
<script>location.replace("../../../actix_http/body/fn.to_bytes_limited.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_http/body/struct.BodyLimitExceeded.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_http/body/struct.BodyLimitExceeded.html">../../../actix_http/body/struct.BodyLimitExceeded.html</a>...</p>
<script>location.replace("../../../actix_http/body/struct.BodyLimitExceeded.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../actix_http/struct.HttpServiceBuilder.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../actix_http/struct.HttpServiceBuilder.html">../../actix_http/struct.HttpServiceBuilder.html</a>...</p>
<script>location.replace("../../actix_http/struct.HttpServiceBuilder.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../actix_http/struct.ServiceConfig.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../actix_http/struct.ServiceConfig.html">../../actix_http/struct.ServiceConfig.html</a>...</p>
<script>location.replace("../../actix_http/struct.ServiceConfig.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_http/encoding/struct.Decoder.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_http/encoding/struct.Decoder.html">../../../actix_http/encoding/struct.Decoder.html</a>...</p>
<script>location.replace("../../../actix_http/encoding/struct.Decoder.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_http/encoding/struct.Encoder.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_http/encoding/struct.Encoder.html">../../../actix_http/encoding/struct.Encoder.html</a>...</p>
<script>location.replace("../../../actix_http/encoding/struct.Encoder.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,2 @@
<!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="Content-Encoding support."><title>actix_http::encoding - 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-2c208a72533b4dd0.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="actix_http" data-themes="" data-resource-suffix="" data-rustdoc-version="1.79.0-nightly (0d8b3346a 2024-04-14)" data-channel="nightly" data-search-js="search-ffac13a0df2b1870.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-c97aec732c613ca4.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></head><body class="rustdoc mod"><!--[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_http/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_http/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2><a href="../../actix_http/index.html">actix_http</a><span class="version">3.6.0</span></h2></div><h2 class="location"><a href="#">Module encoding</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#structs">Structs</a></li></ul></section><h2><a href="../index.html">In crate actix_http</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../actix_http/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../index.html">actix_http</a>::<wbr><a class="mod" href="#">encoding</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_http/encoding/mod.rs.html#1-40">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>__compress</code></strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Content-Encoding support.</p>
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.Decoder.html" title="struct actix_http::encoding::Decoder">Decoder</a></div></li><li><div class="item-name"><a class="struct" href="struct.Encoder.html" title="struct actix_http::encoding::Encoder">Encoder</a></div></li></ul></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"struct":["Decoder","Encoder"]};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,2 @@
<!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="Error and Result module"><title>actix_http::error - 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-2c208a72533b4dd0.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="actix_http" data-themes="" data-resource-suffix="" data-rustdoc-version="1.79.0-nightly (0d8b3346a 2024-04-14)" data-channel="nightly" data-search-js="search-ffac13a0df2b1870.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-c97aec732c613ca4.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></head><body class="rustdoc mod"><!--[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_http/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_http/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2><a href="../../actix_http/index.html">actix_http</a><span class="version">3.6.0</span></h2></div><h2 class="location"><a href="#">Module error</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li></ul></section><h2><a href="../index.html">In crate actix_http</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../actix_http/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../index.html">actix_http</a>::<wbr><a class="mod" href="#">error</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_http/error.rs.html#1-488">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Error and Result module</p>
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.Error.html" title="struct actix_http::error::Error">Error</a></div></li><li><div class="item-name"><a class="struct" href="struct.HttpError.html" title="struct actix_http::error::HttpError">HttpError</a></div><div class="desc docblock-short">A generic “error” for HTTP connections</div></li></ul><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="enum" href="enum.ContentTypeError.html" title="enum actix_http::error::ContentTypeError">ContentTypeError</a></div><div class="desc docblock-short">A set of error that can occur during parsing content type.</div></li><li><div class="item-name"><a class="enum" href="enum.DispatchError.html" title="enum actix_http::error::DispatchError">DispatchError</a></div><div class="desc docblock-short">A set of errors that can occur during dispatching HTTP requests.</div></li><li><div class="item-name"><a class="enum" href="enum.ParseError.html" title="enum actix_http::error::ParseError">ParseError</a></div><div class="desc docblock-short">A set of errors that can occur during parsing HTTP streams.</div></li><li><div class="item-name"><a class="enum" href="enum.PayloadError.html" title="enum actix_http::error::PayloadError">PayloadError</a></div><div class="desc docblock-short">A set of errors that can occur during payload parsing.</div></li></ul></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"enum":["ContentTypeError","DispatchError","ParseError","PayloadError"],"struct":["Error","HttpError"]};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../actix_http/struct.Extensions.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../actix_http/struct.Extensions.html">../../actix_http/struct.Extensions.html</a>...</p>
<script>location.replace("../../actix_http/struct.Extensions.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_http/h1/struct.ClientCodec.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_http/h1/struct.ClientCodec.html">../../../actix_http/h1/struct.ClientCodec.html</a>...</p>
<script>location.replace("../../../actix_http/h1/struct.ClientCodec.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_http/h1/struct.ClientPayloadCodec.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_http/h1/struct.ClientPayloadCodec.html">../../../actix_http/h1/struct.ClientPayloadCodec.html</a>...</p>
<script>location.replace("../../../actix_http/h1/struct.ClientPayloadCodec.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_http/h1/struct.Codec.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_http/h1/struct.Codec.html">../../../actix_http/h1/struct.Codec.html</a>...</p>
<script>location.replace("../../../actix_http/h1/struct.Codec.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_http/h1/struct.Dispatcher.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_http/h1/struct.Dispatcher.html">../../../actix_http/h1/struct.Dispatcher.html</a>...</p>
<script>location.replace("../../../actix_http/h1/struct.Dispatcher.html" + location.search + location.hash);</script>
</body>
</html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_http/h1/struct.ExpectHandler.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_http/h1/struct.ExpectHandler.html">../../../actix_http/h1/struct.ExpectHandler.html</a>...</p>
<script>location.replace("../../../actix_http/h1/struct.ExpectHandler.html" + location.search + location.hash);</script>
</body>
</html>

2
actix_http/h1/index.html Normal file
View file

@ -0,0 +1,2 @@
<!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="HTTP/1 protocol implementation."><title>actix_http::h1 - 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-2c208a72533b4dd0.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="actix_http" data-themes="" data-resource-suffix="" data-rustdoc-version="1.79.0-nightly (0d8b3346a 2024-04-14)" data-channel="nightly" data-search-js="search-ffac13a0df2b1870.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-c97aec732c613ca4.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></head><body class="rustdoc mod"><!--[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_http/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_http/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2><a href="../../actix_http/index.html">actix_http</a><span class="version">3.6.0</span></h2></div><h2 class="location"><a href="#">Module h1</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#types">Type Aliases</a></li></ul></section><h2><a href="../index.html">In crate actix_http</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../actix_http/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../index.html">actix_http</a>::<wbr><a class="mod" href="#">h1</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_http/h1/mod.rs.html#1-93">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>HTTP/1 protocol implementation.</p>
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.ClientCodec.html" title="struct actix_http::h1::ClientCodec">ClientCodec</a></div><div class="desc docblock-short">HTTP/1 Codec</div></li><li><div class="item-name"><a class="struct" href="struct.ClientPayloadCodec.html" title="struct actix_http::h1::ClientPayloadCodec">ClientPayloadCodec</a></div><div class="desc docblock-short">HTTP/1 Payload Codec</div></li><li><div class="item-name"><a class="struct" href="struct.Codec.html" title="struct actix_http::h1::Codec">Codec</a></div><div class="desc docblock-short">HTTP/1 Codec</div></li><li><div class="item-name"><a class="struct" href="struct.Dispatcher.html" title="struct actix_http::h1::Dispatcher">Dispatcher</a></div><div class="desc docblock-short">Dispatcher for HTTP/1.1 protocol</div></li><li><div class="item-name"><a class="struct" href="struct.ExpectHandler.html" title="struct actix_http::h1::ExpectHandler">ExpectHandler</a></div></li><li><div class="item-name"><a class="struct" href="struct.H1Service.html" title="struct actix_http::h1::H1Service">H1Service</a></div><div class="desc docblock-short"><code>ServiceFactory</code> implementation for HTTP1 transport</div></li><li><div class="item-name"><a class="struct" href="struct.Payload.html" title="struct actix_http::h1::Payload">Payload</a></div><div class="desc docblock-short">Buffered stream of bytes chunks</div></li><li><div class="item-name"><a class="struct" href="struct.SendResponse.html" title="struct actix_http::h1::SendResponse">SendResponse</a></div><div class="desc docblock-short">Send HTTP/1 response</div></li><li><div class="item-name"><a class="struct" href="struct.UpgradeHandler.html" title="struct actix_http::h1::UpgradeHandler">UpgradeHandler</a></div></li></ul><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="enum" href="enum.Message.html" title="enum actix_http::h1::Message">Message</a></div><div class="desc docblock-short">Codec message</div></li><li><div class="item-name"><a class="enum" href="enum.MessageType.html" title="enum actix_http::h1::MessageType">MessageType</a></div><div class="desc docblock-short">Incoming request type</div></li></ul><h2 id="types" class="section-header">Type Aliases<a href="#types" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="type" href="type.H1ServiceHandler.html" title="type actix_http::h1::H1ServiceHandler">H1ServiceHandler</a></div><div class="desc docblock-short"><code>Service</code> implementation for HTTP/1 transport</div></li></ul></section></div></main></body></html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_http/h1/struct.Payload.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_http/h1/struct.Payload.html">../../../actix_http/h1/struct.Payload.html</a>...</p>
<script>location.replace("../../../actix_http/h1/struct.Payload.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_http/h1/struct.H1Service.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_http/h1/struct.H1Service.html">../../../actix_http/h1/struct.H1Service.html</a>...</p>
<script>location.replace("../../../actix_http/h1/struct.H1Service.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_http/h1/type.H1ServiceHandler.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_http/h1/type.H1ServiceHandler.html">../../../actix_http/h1/type.H1ServiceHandler.html</a>...</p>
<script>location.replace("../../../actix_http/h1/type.H1ServiceHandler.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"enum":["Message","MessageType"],"struct":["ClientCodec","ClientPayloadCodec","Codec","Dispatcher","ExpectHandler","H1Service","Payload","SendResponse","UpgradeHandler"],"type":["H1ServiceHandler"]};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,2 @@
<!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="`Service` implementation for HTTP/1 transport"><title>H1ServiceHandler in actix_http::h1 - 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-2c208a72533b4dd0.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="actix_http" data-themes="" data-resource-suffix="" data-rustdoc-version="1.79.0-nightly (0d8b3346a 2024-04-14)" data-channel="nightly" data-search-js="search-ffac13a0df2b1870.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-c97aec732c613ca4.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></head><body class="rustdoc type"><!--[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_http/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_http/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2><a href="../../actix_http/index.html">actix_http</a><span class="version">3.6.0</span></h2></div><h2 class="location"><a href="#">H1ServiceHandler</a></h2><div class="sidebar-elems"><section><h3><a href="#aliased-type">Aliased type</a></h3></section><h2><a href="index.html">In actix_http::h1</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../actix_http/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Type Alias <a href="../index.html">actix_http</a>::<wbr><a href="index.html">h1</a>::<wbr><a class="type" href="#">H1ServiceHandler</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_http/h1/service.rs.html#452">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub type H1ServiceHandler&lt;T, S, B, X, U&gt; = HttpServiceHandler&lt;T, S, B, X, U&gt;;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p><code>Service</code> implementation for HTTP/1 transport</p>
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code>struct H1ServiceHandler&lt;T, S, B, X, U&gt; { <span class="comment">/* private fields */</span> }</code></pre></section></div></main></body></html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_http/h1/struct.UpgradeHandler.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_http/h1/struct.UpgradeHandler.html">../../../actix_http/h1/struct.UpgradeHandler.html</a>...</p>
<script>location.replace("../../../actix_http/h1/struct.UpgradeHandler.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_http/h1/struct.SendResponse.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_http/h1/struct.SendResponse.html">../../../actix_http/h1/struct.SendResponse.html</a>...</p>
<script>location.replace("../../../actix_http/h1/struct.SendResponse.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_http/h2/struct.Dispatcher.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_http/h2/struct.Dispatcher.html">../../../actix_http/h2/struct.Dispatcher.html</a>...</p>
<script>location.replace("../../../actix_http/h2/struct.Dispatcher.html" + location.search + location.hash);</script>
</body>
</html>

2
actix_http/h2/index.html Normal file
View file

@ -0,0 +1,2 @@
<!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="HTTP/2 protocol."><title>actix_http::h2 - 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-2c208a72533b4dd0.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="actix_http" data-themes="" data-resource-suffix="" data-rustdoc-version="1.79.0-nightly (0d8b3346a 2024-04-14)" data-channel="nightly" data-search-js="search-ffac13a0df2b1870.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-c97aec732c613ca4.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></head><body class="rustdoc mod"><!--[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_http/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_http/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2><a href="../../actix_http/index.html">actix_http</a><span class="version">3.6.0</span></h2></div><h2 class="location"><a href="#">Module h2</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#structs">Structs</a></li></ul></section><h2><a href="../index.html">In crate actix_http</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../actix_http/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../index.html">actix_http</a>::<wbr><a class="mod" href="#">h2</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_http/h2/mod.rs.html#1-107">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>http2</code></strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>HTTP/2 protocol.</p>
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.Dispatcher.html" title="struct actix_http::h2::Dispatcher">Dispatcher</a></div><div class="desc docblock-short">Dispatcher for HTTP/2 protocol.</div></li><li><div class="item-name"><a class="struct" href="struct.H2Service.html" title="struct actix_http::h2::H2Service">H2Service</a></div><div class="desc docblock-short"><code>ServiceFactory</code> implementation for HTTP/2 transport</div></li><li><div class="item-name"><a class="struct" href="struct.Payload.html" title="struct actix_http::h2::Payload">Payload</a></div><div class="desc docblock-short">HTTP/2 peer stream.</div></li></ul></section></div></main></body></html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_http/h2/struct.H2Service.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_http/h2/struct.H2Service.html">../../../actix_http/h2/struct.H2Service.html</a>...</p>
<script>location.replace("../../../actix_http/h2/struct.H2Service.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"struct":["Dispatcher","H2Service","Payload"]};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_http/header/trait.AsHeaderName.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_http/header/trait.AsHeaderName.html">../../../actix_http/header/trait.AsHeaderName.html</a>...</p>
<script>location.replace("../../../actix_http/header/trait.AsHeaderName.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_http/header/constant.CACHE_STATUS.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_http/header/constant.CACHE_STATUS.html">../../../actix_http/header/constant.CACHE_STATUS.html</a>...</p>
<script>location.replace("../../../actix_http/header/constant.CACHE_STATUS.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_http/header/constant.CDN_CACHE_CONTROL.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_http/header/constant.CDN_CACHE_CONTROL.html">../../../actix_http/header/constant.CDN_CACHE_CONTROL.html</a>...</p>
<script>location.replace("../../../actix_http/header/constant.CDN_CACHE_CONTROL.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_http/header/constant.CROSS_ORIGIN_EMBEDDER_POLICY.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_http/header/constant.CROSS_ORIGIN_EMBEDDER_POLICY.html">../../../actix_http/header/constant.CROSS_ORIGIN_EMBEDDER_POLICY.html</a>...</p>
<script>location.replace("../../../actix_http/header/constant.CROSS_ORIGIN_EMBEDDER_POLICY.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_http/header/constant.CROSS_ORIGIN_OPENER_POLICY.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_http/header/constant.CROSS_ORIGIN_OPENER_POLICY.html">../../../actix_http/header/constant.CROSS_ORIGIN_OPENER_POLICY.html</a>...</p>
<script>location.replace("../../../actix_http/header/constant.CROSS_ORIGIN_OPENER_POLICY.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_http/header/constant.CROSS_ORIGIN_RESOURCE_POLICY.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_http/header/constant.CROSS_ORIGIN_RESOURCE_POLICY.html">../../../actix_http/header/constant.CROSS_ORIGIN_RESOURCE_POLICY.html</a>...</p>
<script>location.replace("../../../actix_http/header/constant.CROSS_ORIGIN_RESOURCE_POLICY.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_http/header/constant.PERMISSIONS_POLICY.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_http/header/constant.PERMISSIONS_POLICY.html">../../../actix_http/header/constant.PERMISSIONS_POLICY.html</a>...</p>
<script>location.replace("../../../actix_http/header/constant.PERMISSIONS_POLICY.html" + location.search + location.hash);</script>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_http/header/constant.X_FORWARDED_FOR.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_http/header/constant.X_FORWARDED_FOR.html">../../../actix_http/header/constant.X_FORWARDED_FOR.html</a>...</p>
<script>location.replace("../../../actix_http/header/constant.X_FORWARDED_FOR.html" + location.search + location.hash);</script>
</body>
</html>

Some files were not shown because too many files have changed in this diff Show more