Initial docs commit
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../http/struct.Error.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../http/struct.Error.html">../../http/struct.Error.html</a>...</p>
|
||||
<script>location.replace("../../http/struct.Error.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../http/type.Result.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../http/type.Result.html">../../http/type.Result.html</a>...</p>
|
||||
<script>location.replace("../../http/type.Result.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../http/struct.Extensions.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../http/struct.Extensions.html">../../http/struct.Extensions.html</a>...</p>
|
||||
<script>location.replace("../../http/struct.Extensions.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,14 @@
|
||||
<!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="Advertises which content types the client is able to understand."><meta name="keywords" content="rust, rustlang, rust-lang, ACCEPT"><title>http::header::ACCEPT - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="ACCEPT" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">ACCEPT</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const ACCEPT: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Advertises which content types the client is able to understand.</p>
|
||||
<p>The Accept request HTTP header advertises which content types, expressed
|
||||
as MIME types, the client is able to understand. Using content
|
||||
negotiation, the server then selects one of the proposals, uses it and
|
||||
informs the client of its choice with the Content-Type response header.
|
||||
Browsers set adequate values for this header depending of the context
|
||||
where the request is done: when fetching a CSS stylesheet a different
|
||||
value is set for the request than when fetching an image, video or a
|
||||
script.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,16 @@
|
||||
<!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="Advertises which character set the client is able to understand."><meta name="keywords" content="rust, rustlang, rust-lang, ACCEPT_CHARSET"><title>http::header::ACCEPT_CHARSET - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="ACCEPT_CHARSET" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">ACCEPT_CHARSET</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const ACCEPT_CHARSET: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Advertises which character set the client is able to understand.</p>
|
||||
<p>The Accept-Charset request HTTP header advertises which character set
|
||||
the client is able to understand. Using content negotiation, the server
|
||||
then selects one of the proposals, uses it and informs the client of its
|
||||
choice within the Content-Type response header. Browsers usually don’t
|
||||
set this header as the default value for each content type is usually
|
||||
correct and transmitting it would allow easier fingerprinting.</p>
|
||||
<p>If the server cannot serve any matching character set, it can
|
||||
theoretically send back a 406 (Not Acceptable) error code. But, for a
|
||||
better user experience, this is rarely done and the more common way is
|
||||
to ignore the Accept-Charset header in this case.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,32 @@
|
||||
<!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="Advertises which content encoding the client is able to understand."><meta name="keywords" content="rust, rustlang, rust-lang, ACCEPT_ENCODING"><title>http::header::ACCEPT_ENCODING - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="ACCEPT_ENCODING" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">ACCEPT_ENCODING</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const ACCEPT_ENCODING: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Advertises which content encoding the client is able to understand.</p>
|
||||
<p>The Accept-Encoding request HTTP header advertises which content
|
||||
encoding, usually a compression algorithm, the client is able to
|
||||
understand. Using content negotiation, the server selects one of the
|
||||
proposals, uses it and informs the client of its choice with the
|
||||
Content-Encoding response header.</p>
|
||||
<p>Even if both the client and the server supports the same compression
|
||||
algorithms, the server may choose not to compress the body of a
|
||||
response, if the identity value is also acceptable. Two common cases
|
||||
lead to this:</p>
|
||||
<ul>
|
||||
<li>
|
||||
<p>The data to be sent is already compressed and a second compression
|
||||
won’t lead to smaller data to be transmitted. This may the case with
|
||||
some image formats;</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>The server is overloaded and cannot afford the computational overhead
|
||||
induced by the compression requirement. Typically, Microsoft recommends
|
||||
not to compress if a server use more than 80 % of its computational
|
||||
power.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<p>As long as the identity value, meaning no encryption, is not explicitly
|
||||
forbidden, by an identity;q=0 or a *;q=0 without another explicitly set
|
||||
value for identity, the server must never send back a 406 Not Acceptable
|
||||
error.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,25 @@
|
||||
<!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="Advertises which languages the client is able to understand."><meta name="keywords" content="rust, rustlang, rust-lang, ACCEPT_LANGUAGE"><title>http::header::ACCEPT_LANGUAGE - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="ACCEPT_LANGUAGE" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">ACCEPT_LANGUAGE</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const ACCEPT_LANGUAGE: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Advertises which languages the client is able to understand.</p>
|
||||
<p>The Accept-Language request HTTP header advertises which languages the
|
||||
client is able to understand, and which locale variant is preferred.
|
||||
Using content negotiation, the server then selects one of the proposals,
|
||||
uses it and informs the client of its choice with the Content-Language
|
||||
response header. Browsers set adequate values for this header according
|
||||
their user interface language and even if a user can change it, this
|
||||
happens rarely (and is frown upon as it leads to fingerprinting).</p>
|
||||
<p>This header is a hint to be used when the server has no way of
|
||||
determining the language via another way, like a specific URL, that is
|
||||
controlled by an explicit user decision. It is recommended that the
|
||||
server never overrides an explicit decision. The content of the
|
||||
Accept-Language is often out of the control of the user (like when
|
||||
traveling and using an Internet Cafe in a different country); the user
|
||||
may also want to visit a page in another language than the locale of
|
||||
their user interface.</p>
|
||||
<p>If the server cannot serve any matching language, it can theoretically
|
||||
send back a 406 (Not Acceptable) error code. But, for a better user
|
||||
experience, this is rarely done and more common way is to ignore the
|
||||
Accept-Language header in this case.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -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="Marker used by the server to advertise partial request support."><meta name="keywords" content="rust, rustlang, rust-lang, ACCEPT_RANGES"><title>http::header::ACCEPT_RANGES - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="ACCEPT_RANGES" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">ACCEPT_RANGES</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const ACCEPT_RANGES: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Marker used by the server to advertise partial request support.</p>
|
||||
<p>The Accept-Ranges response HTTP header is a marker used by the server to
|
||||
advertise its support of partial requests. The value of this field
|
||||
indicates the unit that can be used to define a range.</p>
|
||||
<p>In presence of an Accept-Ranges header, the browser may try to resume an
|
||||
interrupted download, rather than to start it from the start again.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,24 @@
|
||||
<!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="Preflight response indicating if the response to the request can be exposed to the page."><meta name="keywords" content="rust, rustlang, rust-lang, ACCESS_CONTROL_ALLOW_CREDENTIALS"><title>http::header::ACCESS_CONTROL_ALLOW_CREDENTIALS - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="ACCESS_CONTROL_ALLOW_CREDENTIALS" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">ACCESS_CONTROL_ALLOW_CREDENTIALS</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const ACCESS_CONTROL_ALLOW_CREDENTIALS: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Preflight response indicating if the response to the request can be
|
||||
exposed to the page.</p>
|
||||
<p>The Access-Control-Allow-Credentials response header indicates whether
|
||||
or not the response to the request can be exposed to the page. It can be
|
||||
exposed when the true value is returned; it can’t in other cases.</p>
|
||||
<p>Credentials are cookies, authorization headers or TLS client
|
||||
certificates.</p>
|
||||
<p>When used as part of a response to a preflight request, this indicates
|
||||
whether or not the actual request can be made using credentials. Note
|
||||
that simple GET requests are not preflighted, and so if a request is
|
||||
made for a resource with credentials, if this header is not returned
|
||||
with the resource, the response is ignored by the browser and not
|
||||
returned to web content.</p>
|
||||
<p>The Access-Control-Allow-Credentials header works in conjunction with
|
||||
the XMLHttpRequest.withCredentials property or with the credentials
|
||||
option in the Request() constructor of the Fetch API. Credentials must
|
||||
be set on both sides (the Access-Control-Allow-Credentials header and in
|
||||
the XHR or Fetch request) in order for the CORS request with credentials
|
||||
to succeed.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,16 @@
|
||||
<!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="Preflight response indicating permitted HTTP headers."><meta name="keywords" content="rust, rustlang, rust-lang, ACCESS_CONTROL_ALLOW_HEADERS"><title>http::header::ACCESS_CONTROL_ALLOW_HEADERS - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="ACCESS_CONTROL_ALLOW_HEADERS" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">ACCESS_CONTROL_ALLOW_HEADERS</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const ACCESS_CONTROL_ALLOW_HEADERS: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Preflight response indicating permitted HTTP headers.</p>
|
||||
<p>The Access-Control-Allow-Headers response header is used in response to
|
||||
a preflight request to indicate which HTTP headers will be available via
|
||||
Access-Control-Expose-Headers when making the actual request.</p>
|
||||
<p>The simple headers, Accept, Accept-Language, Content-Language,
|
||||
Content-Type (but only with a MIME type of its parsed value (ignoring
|
||||
parameters) of either application/x-www-form-urlencoded,
|
||||
multipart/form-data, or text/plain), are always available and don’t need
|
||||
to be listed by this header.</p>
|
||||
<p>This header is required if the request has an
|
||||
Access-Control-Request-Headers header.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,9 @@
|
||||
<!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="Preflight header response indicating permitted access methods."><meta name="keywords" content="rust, rustlang, rust-lang, ACCESS_CONTROL_ALLOW_METHODS"><title>http::header::ACCESS_CONTROL_ALLOW_METHODS - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="ACCESS_CONTROL_ALLOW_METHODS" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">ACCESS_CONTROL_ALLOW_METHODS</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const ACCESS_CONTROL_ALLOW_METHODS: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Preflight header response indicating permitted access methods.</p>
|
||||
<p>The Access-Control-Allow-Methods response header specifies the method or
|
||||
methods allowed when accessing the resource in response to a preflight
|
||||
request.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<!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="Indicates whether the response can be shared with resources with the given origin."><meta name="keywords" content="rust, rustlang, rust-lang, ACCESS_CONTROL_ALLOW_ORIGIN"><title>http::header::ACCESS_CONTROL_ALLOW_ORIGIN - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="ACCESS_CONTROL_ALLOW_ORIGIN" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">ACCESS_CONTROL_ALLOW_ORIGIN</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const ACCESS_CONTROL_ALLOW_ORIGIN: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Indicates whether the response can be shared with resources with the
|
||||
given origin.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<!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="Indicates which headers can be exposed as part of the response by listing their names."><meta name="keywords" content="rust, rustlang, rust-lang, ACCESS_CONTROL_EXPOSE_HEADERS"><title>http::header::ACCESS_CONTROL_EXPOSE_HEADERS - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="ACCESS_CONTROL_EXPOSE_HEADERS" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">ACCESS_CONTROL_EXPOSE_HEADERS</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const ACCESS_CONTROL_EXPOSE_HEADERS: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Indicates which headers can be exposed as part of the response by
|
||||
listing their names.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,6 @@
|
||||
<!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="Indicates how long the results of a preflight request can be cached."><meta name="keywords" content="rust, rustlang, rust-lang, ACCESS_CONTROL_MAX_AGE"><title>http::header::ACCESS_CONTROL_MAX_AGE - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="ACCESS_CONTROL_MAX_AGE" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">ACCESS_CONTROL_MAX_AGE</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const ACCESS_CONTROL_MAX_AGE: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Indicates how long the results of a preflight request can be cached.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<!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="Informs the server which HTTP headers will be used when an actual request is made."><meta name="keywords" content="rust, rustlang, rust-lang, ACCESS_CONTROL_REQUEST_HEADERS"><title>http::header::ACCESS_CONTROL_REQUEST_HEADERS - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="ACCESS_CONTROL_REQUEST_HEADERS" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">ACCESS_CONTROL_REQUEST_HEADERS</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const ACCESS_CONTROL_REQUEST_HEADERS: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Informs the server which HTTP headers will be used when an actual
|
||||
request is made.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<!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="Informs the server know which HTTP method will be used when the actual request is made."><meta name="keywords" content="rust, rustlang, rust-lang, ACCESS_CONTROL_REQUEST_METHOD"><title>http::header::ACCESS_CONTROL_REQUEST_METHOD - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="ACCESS_CONTROL_REQUEST_METHOD" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">ACCESS_CONTROL_REQUEST_METHOD</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const ACCESS_CONTROL_REQUEST_METHOD: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Informs the server know which HTTP method will be used when the actual
|
||||
request is made.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<!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="Indicates the time in seconds the object has been in a proxy cache."><meta name="keywords" content="rust, rustlang, rust-lang, AGE"><title>http::header::AGE - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="AGE" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">AGE</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const AGE: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Indicates the time in seconds the object has been in a proxy cache.</p>
|
||||
<p>The Age header is usually close to zero. If it is Age: 0, it was
|
||||
probably just fetched from the origin server; otherwise It is usually
|
||||
calculated as a difference between the proxy’s current date and the Date
|
||||
general header included in the HTTP response.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -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="Lists the set of methods support by a resource."><meta name="keywords" content="rust, rustlang, rust-lang, ALLOW"><title>http::header::ALLOW - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="ALLOW" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">ALLOW</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const ALLOW: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Lists the set of methods support by a resource.</p>
|
||||
<p>This header must be sent if the server responds with a 405 Method Not
|
||||
Allowed status code to indicate which request methods can be used. An
|
||||
empty Allow header indicates that the resource allows no request
|
||||
methods, which might occur temporarily for a given resource, for
|
||||
example.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,6 @@
|
||||
<!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="Advertises the availability of alternate services to clients."><meta name="keywords" content="rust, rustlang, rust-lang, ALT_SVC"><title>http::header::ALT_SVC - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="ALT_SVC" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">ALT_SVC</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const ALT_SVC: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Advertises the availability of alternate services to clients.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,8 @@
|
||||
<!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="Contains the credentials to authenticate a user agent with a server."><meta name="keywords" content="rust, rustlang, rust-lang, AUTHORIZATION"><title>http::header::AUTHORIZATION - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="AUTHORIZATION" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">AUTHORIZATION</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const AUTHORIZATION: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Contains the credentials to authenticate a user agent with a server.</p>
|
||||
<p>Usually this header is included after the server has responded with a
|
||||
401 Unauthorized status and the WWW-Authenticate header.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<!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="Specifies directives for caching mechanisms in both requests and responses."><meta name="keywords" content="rust, rustlang, rust-lang, CACHE_CONTROL"><title>http::header::CACHE_CONTROL - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="CACHE_CONTROL" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">CACHE_CONTROL</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const CACHE_CONTROL: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Specifies directives for caching mechanisms in both requests and
|
||||
responses.</p>
|
||||
<p>Caching directives are unidirectional, meaning that a given directive in
|
||||
a request is not implying that the same directive is to be given in the
|
||||
response.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,16 @@
|
||||
<!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="Controls whether or not the network connection stays open after the current transaction finishes."><meta name="keywords" content="rust, rustlang, rust-lang, CONNECTION"><title>http::header::CONNECTION - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="CONNECTION" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">CONNECTION</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const CONNECTION: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Controls whether or not the network connection stays open after the
|
||||
current transaction finishes.</p>
|
||||
<p>If the value sent is keep-alive, the connection is persistent and not
|
||||
closed, allowing for subsequent requests to the same server to be done.</p>
|
||||
<p>Except for the standard hop-by-hop headers (Keep-Alive,
|
||||
Transfer-Encoding, TE, Connection, Trailer, Upgrade, Proxy-Authorization
|
||||
and Proxy-Authenticate), any hop-by-hop headers used by the message must
|
||||
be listed in the Connection header, so that the first proxy knows he has
|
||||
to consume them and not to forward them further. Standard hop-by-hop
|
||||
headers can be listed too (it is often the case of Keep-Alive, but this
|
||||
is not mandatory.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,20 @@
|
||||
<!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="Indicates if the content is expected to be displayed inline."><meta name="keywords" content="rust, rustlang, rust-lang, CONTENT_DISPOSITION"><title>http::header::CONTENT_DISPOSITION - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="CONTENT_DISPOSITION" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">CONTENT_DISPOSITION</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const CONTENT_DISPOSITION: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Indicates if the content is expected to be displayed inline.</p>
|
||||
<p>In a regular HTTP response, the Content-Disposition response header is a
|
||||
header indicating if the content is expected to be displayed inline in
|
||||
the browser, that is, as a Web page or as part of a Web page, or as an
|
||||
attachment, that is downloaded and saved locally.</p>
|
||||
<p>In a multipart/form-data body, the HTTP Content-Disposition general
|
||||
header is a header that can be used on the subpart of a multipart body
|
||||
to give information about the field it applies to. The subpart is
|
||||
delimited by the boundary defined in the Content-Type header. Used on
|
||||
the body itself, Content-Disposition has no effect.</p>
|
||||
<p>The Content-Disposition header is defined in the larger context of MIME
|
||||
messages for e-mail, but only a subset of the possible parameters apply
|
||||
to HTTP forms and POST requests. Only the value form-data, as well as
|
||||
the optional directive name and filename, can be used in the HTTP
|
||||
context.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,13 @@
|
||||
<!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="Used to compress the media-type."><meta name="keywords" content="rust, rustlang, rust-lang, CONTENT_ENCODING"><title>http::header::CONTENT_ENCODING - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="CONTENT_ENCODING" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">CONTENT_ENCODING</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const CONTENT_ENCODING: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Used to compress the media-type.</p>
|
||||
<p>When present, its value indicates what additional content encoding has
|
||||
been applied to the entity-body. It lets the client know, how to decode
|
||||
in order to obtain the media-type referenced by the Content-Type header.</p>
|
||||
<p>It is recommended to compress data as much as possible and therefore to
|
||||
use this field, but some types of resources, like jpeg images, are
|
||||
already compressed. Sometimes using additional compression doesn’t
|
||||
reduce payload size and can even make the payload longer.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,16 @@
|
||||
<!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="Used to describe the languages intended for the audience."><meta name="keywords" content="rust, rustlang, rust-lang, CONTENT_LANGUAGE"><title>http::header::CONTENT_LANGUAGE - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="CONTENT_LANGUAGE" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">CONTENT_LANGUAGE</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const CONTENT_LANGUAGE: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Used to describe the languages intended for the audience.</p>
|
||||
<p>This header allows a user to differentiate according to the users’ own
|
||||
preferred language. For example, if “Content-Language: de-DE” is set, it
|
||||
says that the document is intended for German language speakers
|
||||
(however, it doesn’t indicate the document is written in German. For
|
||||
example, it might be written in English as part of a language course for
|
||||
German speakers).</p>
|
||||
<p>If no Content-Language is specified, the default is that the content is
|
||||
intended for all language audiences. Multiple language tags are also
|
||||
possible, as well as applying the Content-Language header to various
|
||||
media types and not only to textual documents.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,8 @@
|
||||
<!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="Indicates the size fo the entity-body."><meta name="keywords" content="rust, rustlang, rust-lang, CONTENT_LENGTH"><title>http::header::CONTENT_LENGTH - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="CONTENT_LENGTH" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">CONTENT_LENGTH</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const CONTENT_LENGTH: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Indicates the size fo the entity-body.</p>
|
||||
<p>The header value must be a decimal indicating the number of octets sent
|
||||
to the recipient.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,14 @@
|
||||
<!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="Indicates an alternate location for the returned data."><meta name="keywords" content="rust, rustlang, rust-lang, CONTENT_LOCATION"><title>http::header::CONTENT_LOCATION - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="CONTENT_LOCATION" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">CONTENT_LOCATION</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const CONTENT_LOCATION: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Indicates an alternate location for the returned data.</p>
|
||||
<p>The principal use case is to indicate the URL of the resource
|
||||
transmitted as the result of content negotiation.</p>
|
||||
<p>Location and Content-Location are different: Location indicates the
|
||||
target of a redirection (or the URL of a newly created document), while
|
||||
Content-Location indicates the direct URL to use to access the resource,
|
||||
without the need of further content negotiation. Location is a header
|
||||
associated with the response, while Content-Location is associated with
|
||||
the entity returned.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,6 @@
|
||||
<!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="Indicates where in a full body message a partial message belongs."><meta name="keywords" content="rust, rustlang, rust-lang, CONTENT_RANGE"><title>http::header::CONTENT_RANGE - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="CONTENT_RANGE" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">CONTENT_RANGE</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const CONTENT_RANGE: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Indicates where in a full body message a partial message belongs.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<!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="Allows controlling resources the user agent is allowed to load for a given page."><meta name="keywords" content="rust, rustlang, rust-lang, CONTENT_SECURITY_POLICY"><title>http::header::CONTENT_SECURITY_POLICY - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="CONTENT_SECURITY_POLICY" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">CONTENT_SECURITY_POLICY</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const CONTENT_SECURITY_POLICY: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Allows controlling resources the user agent is allowed to load for a
|
||||
given page.</p>
|
||||
<p>With a few exceptions, policies mostly involve specifying server origins
|
||||
and script endpoints. This helps guard against cross-site scripting
|
||||
attacks (XSS).</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<!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="Allows experimenting with policies by monitoring their effects."><meta name="keywords" content="rust, rustlang, rust-lang, CONTENT_SECURITY_POLICY_REPORT_ONLY"><title>http::header::CONTENT_SECURITY_POLICY_REPORT_ONLY - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="CONTENT_SECURITY_POLICY_REPORT_ONLY" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">CONTENT_SECURITY_POLICY_REPORT_ONLY</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const CONTENT_SECURITY_POLICY_REPORT_ONLY: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Allows experimenting with policies by monitoring their effects.</p>
|
||||
<p>The HTTP Content-Security-Policy-Report-Only response header allows web
|
||||
developers to experiment with policies by monitoring (but not enforcing)
|
||||
their effects. These violation reports consist of JSON documents sent
|
||||
via an HTTP POST request to the specified URI.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,13 @@
|
||||
<!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="Used to indicate the media type of the resource."><meta name="keywords" content="rust, rustlang, rust-lang, CONTENT_TYPE"><title>http::header::CONTENT_TYPE - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="CONTENT_TYPE" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">CONTENT_TYPE</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const CONTENT_TYPE: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Used to indicate the media type of the resource.</p>
|
||||
<p>In responses, a Content-Type header tells the client what the content
|
||||
type of the returned content actually is. Browsers will do MIME sniffing
|
||||
in some cases and will not necessarily follow the value of this header;
|
||||
to prevent this behavior, the header X-Content-Type-Options can be set
|
||||
to nosniff.</p>
|
||||
<p>In requests, (such as POST or PUT), the client tells the server what
|
||||
type of data is actually sent.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,9 @@
|
||||
<!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="Contains stored HTTP cookies previously sent by the server with the Set-Cookie header."><meta name="keywords" content="rust, rustlang, rust-lang, COOKIE"><title>http::header::COOKIE - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="COOKIE" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">COOKIE</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const COOKIE: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Contains stored HTTP cookies previously sent by the server with the
|
||||
Set-Cookie header.</p>
|
||||
<p>The Cookie header might be omitted entirely, if the privacy setting of
|
||||
the browser are set to block them, for example.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,6 @@
|
||||
<!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="Contains the date and time at which the message was originated."><meta name="keywords" content="rust, rustlang, rust-lang, DATE"><title>http::header::DATE - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="DATE" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">DATE</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const DATE: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Contains the date and time at which the message was originated.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,8 @@
|
||||
<!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="Indicates the client’s tracking preference."><meta name="keywords" content="rust, rustlang, rust-lang, DNT"><title>http::header::DNT - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="DNT" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">DNT</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const DNT: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Indicates the client’s tracking preference.</p>
|
||||
<p>This header lets users indicate whether they would prefer privacy rather
|
||||
than personalized content.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,17 @@
|
||||
<!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="Identifier for a specific version of a resource."><meta name="keywords" content="rust, rustlang, rust-lang, ETAG"><title>http::header::ETAG - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="ETAG" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">ETAG</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const ETAG: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Identifier for a specific version of a resource.</p>
|
||||
<p>This header allows caches to be more efficient, and saves bandwidth, as
|
||||
a web server does not need to send a full response if the content has
|
||||
not changed. On the other side, if the content has changed, etags are
|
||||
useful to help prevent simultaneous updates of a resource from
|
||||
overwriting each other (“mid-air collisions”).</p>
|
||||
<p>If the resource at a given URL changes, a new Etag value must be
|
||||
generated. Etags are therefore similar to fingerprints and might also be
|
||||
used for tracking purposes by some servers. A comparison of them allows
|
||||
to quickly determine whether two representations of a resource are the
|
||||
same, but they might also be set to persist indefinitely by a tracking
|
||||
server.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,23 @@
|
||||
<!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="Indicates expectations that need to be fulfilled by the server in order to properly handle the request."><meta name="keywords" content="rust, rustlang, rust-lang, EXPECT"><title>http::header::EXPECT - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="EXPECT" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">EXPECT</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const EXPECT: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Indicates expectations that need to be fulfilled by the server in order
|
||||
to properly handle the request.</p>
|
||||
<p>The only expectation defined in the specification is Expect:
|
||||
100-continue, to which the server shall respond with:</p>
|
||||
<ul>
|
||||
<li>
|
||||
<p>100 if the information contained in the header is sufficient to cause
|
||||
an immediate success,</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>417 (Expectation Failed) if it cannot meet the expectation; or any
|
||||
other 4xx status otherwise.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<p>For example, the server may reject a request if its Content-Length is
|
||||
too large.</p>
|
||||
<p>No common browsers send the Expect header, but some other clients such
|
||||
as cURL do so by default.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<!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="Contains the date/time after which the response is considered stale."><meta name="keywords" content="rust, rustlang, rust-lang, EXPIRES"><title>http::header::EXPIRES - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="EXPIRES" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">EXPIRES</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const EXPIRES: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Contains the date/time after which the response is considered stale.</p>
|
||||
<p>Invalid dates, like the value 0, represent a date in the past and mean
|
||||
that the resource is already expired.</p>
|
||||
<p>If there is a Cache-Control header with the “max-age” or “s-max-age”
|
||||
directive in the response, the Expires header is ignored.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,13 @@
|
||||
<!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="Contains information from the client-facing side of proxy servers that is altered or lost when a proxy is involved in the path of the request."><meta name="keywords" content="rust, rustlang, rust-lang, FORWARDED"><title>http::header::FORWARDED - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="FORWARDED" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">FORWARDED</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const FORWARDED: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Contains information from the client-facing side of proxy servers that
|
||||
is altered or lost when a proxy is involved in the path of the request.</p>
|
||||
<p>The alternative and de-facto standard versions of this header are the
|
||||
X-Forwarded-For, X-Forwarded-Host and X-Forwarded-Proto headers.</p>
|
||||
<p>This header is used for debugging, statistics, and generating
|
||||
location-dependent content and by design it exposes privacy sensitive
|
||||
information, such as the IP address of the client. Therefore the user’s
|
||||
privacy must be kept in mind when deploying this header.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -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="Contains an Internet email address for a human user who controls the requesting user agent."><meta name="keywords" content="rust, rustlang, rust-lang, FROM"><title>http::header::FROM - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="FROM" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">FROM</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const FROM: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Contains an Internet email address for a human user who controls the
|
||||
requesting user agent.</p>
|
||||
<p>If you are running a robotic user agent (e.g. a crawler), the From
|
||||
header should be sent, so you can be contacted if problems occur on
|
||||
servers, such as if the robot is sending excessive, unwanted, or invalid
|
||||
requests.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,12 @@
|
||||
<!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="Specifies the domain name of the server and (optionally) the TCP port number on which the server is listening."><meta name="keywords" content="rust, rustlang, rust-lang, HOST"><title>http::header::HOST - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="HOST" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">HOST</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const HOST: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Specifies the domain name of the server and (optionally) the TCP port
|
||||
number on which the server is listening.</p>
|
||||
<p>If no port is given, the default port for the service requested (e.g.,
|
||||
“80” for an HTTP URL) is implied.</p>
|
||||
<p>A Host header field must be sent in all HTTP/1.1 request messages. A 400
|
||||
(Bad Request) status code will be sent to any HTTP/1.1 request message
|
||||
that lacks a Host header field or contains more than one.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,29 @@
|
||||
<!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="Makes a request conditional based on the E-Tag."><meta name="keywords" content="rust, rustlang, rust-lang, IF_MATCH"><title>http::header::IF_MATCH - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="IF_MATCH" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">IF_MATCH</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const IF_MATCH: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Makes a request conditional based on the E-Tag.</p>
|
||||
<p>For GET and HEAD methods, the server will send back the requested
|
||||
resource only if it matches one of the listed ETags. For PUT and other
|
||||
non-safe methods, it will only upload the resource in this case.</p>
|
||||
<p>The comparison with the stored ETag uses the strong comparison
|
||||
algorithm, meaning two files are considered identical byte to byte only.
|
||||
This is weakened when the W/ prefix is used in front of the ETag.</p>
|
||||
<p>There are two common use cases:</p>
|
||||
<ul>
|
||||
<li>
|
||||
<p>For GET and HEAD methods, used in combination with an Range header, it
|
||||
can guarantee that the new ranges requested comes from the same resource
|
||||
than the previous one. If it doesn’t match, then a 416 (Range Not
|
||||
Satisfiable) response is returned.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>For other methods, and in particular for PUT, If-Match can be used to
|
||||
prevent the lost update problem. It can check if the modification of a
|
||||
resource that the user wants to upload will not override another change
|
||||
that has been done since the original resource was fetched. If the
|
||||
request cannot be fulfilled, the 412 (Precondition Failed) response is
|
||||
returned.</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,17 @@
|
||||
<!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="Makes a request conditional based on the modification date."><meta name="keywords" content="rust, rustlang, rust-lang, IF_MODIFIED_SINCE"><title>http::header::IF_MODIFIED_SINCE - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="IF_MODIFIED_SINCE" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">IF_MODIFIED_SINCE</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const IF_MODIFIED_SINCE: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Makes a request conditional based on the modification date.</p>
|
||||
<p>The If-Modified-Since request HTTP header makes the request conditional:
|
||||
the server will send back the requested resource, with a 200 status,
|
||||
only if it has been last modified after the given date. If the request
|
||||
has not been modified since, the response will be a 304 without any
|
||||
body; the Last-Modified header will contain the date of last
|
||||
modification. Unlike If-Unmodified-Since, If-Modified-Since can only be
|
||||
used with a GET or HEAD.</p>
|
||||
<p>When used in combination with If-None-Match, it is ignored, unless the
|
||||
server doesn’t support If-None-Match.</p>
|
||||
<p>The most common use case is to update a cached entity that has no
|
||||
associated ETag.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,35 @@
|
||||
<!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="Makes a request conditional based on the E-Tag."><meta name="keywords" content="rust, rustlang, rust-lang, IF_NONE_MATCH"><title>http::header::IF_NONE_MATCH - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="IF_NONE_MATCH" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">IF_NONE_MATCH</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const IF_NONE_MATCH: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Makes a request conditional based on the E-Tag.</p>
|
||||
<p>The If-None-Match HTTP request header makes the request conditional. For
|
||||
GET and HEAD methods, the server will send back the requested resource,
|
||||
with a 200 status, only if it doesn’t have an ETag matching the given
|
||||
ones. For other methods, the request will be processed only if the
|
||||
eventually existing resource’s ETag doesn’t match any of the values
|
||||
listed.</p>
|
||||
<p>When the condition fails for GET and HEAD methods, then the server must
|
||||
return HTTP status code 304 (Not Modified). For methods that apply
|
||||
server-side changes, the status code 412 (Precondition Failed) is used.
|
||||
Note that the server generating a 304 response MUST generate any of the
|
||||
following header fields that would have been sent in a 200 (OK) response
|
||||
to the same request: Cache-Control, Content-Location, Date, ETag,
|
||||
Expires, and Vary.</p>
|
||||
<p>The comparison with the stored ETag uses the weak comparison algorithm,
|
||||
meaning two files are considered identical not only if they are
|
||||
identical byte to byte, but if the content is equivalent. For example,
|
||||
two pages that would differ only by the date of generation in the footer
|
||||
would be considered as identical.</p>
|
||||
<p>When used in combination with If-Modified-Since, it has precedence (if
|
||||
the server supports it).</p>
|
||||
<p>There are two common use cases:</p>
|
||||
<ul>
|
||||
<li>For <code>GET</code> and <code>HEAD</code> methods, to update a cached entity that has an associated ETag.</li>
|
||||
<li>For other methods, and in particular for <code>PUT</code>, <code>If-None-Match</code> used with
|
||||
the <code>*</code> value can be used to save a file not known to exist,
|
||||
guaranteeing that another upload didn’t happen before, losing the data
|
||||
of the previous put; this problems is the variation of the lost update
|
||||
problem.</li>
|
||||
</ul>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,16 @@
|
||||
<!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="Makes a request conditional based on range."><meta name="keywords" content="rust, rustlang, rust-lang, IF_RANGE"><title>http::header::IF_RANGE - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="IF_RANGE" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">IF_RANGE</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const IF_RANGE: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Makes a request conditional based on range.</p>
|
||||
<p>The If-Range HTTP request header makes a range request conditional: if
|
||||
the condition is fulfilled, the range request will be issued and the
|
||||
server sends back a 206 Partial Content answer with the appropriate
|
||||
body. If the condition is not fulfilled, the full resource is sent back,
|
||||
with a 200 OK status.</p>
|
||||
<p>This header can be used either with a Last-Modified validator, or with
|
||||
an ETag, but not with both.</p>
|
||||
<p>The most common use case is to resume a download, to guarantee that the
|
||||
stored resource has not been modified since the last fragment has been
|
||||
received.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,26 @@
|
||||
<!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="Makes the request conditional based on the last modification date."><meta name="keywords" content="rust, rustlang, rust-lang, IF_UNMODIFIED_SINCE"><title>http::header::IF_UNMODIFIED_SINCE - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="IF_UNMODIFIED_SINCE" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">IF_UNMODIFIED_SINCE</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const IF_UNMODIFIED_SINCE: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Makes the request conditional based on the last modification date.</p>
|
||||
<p>The If-Unmodified-Since request HTTP header makes the request
|
||||
conditional: the server will send back the requested resource, or accept
|
||||
it in the case of a POST or another non-safe method, only if it has not
|
||||
been last modified after the given date. If the request has been
|
||||
modified after the given date, the response will be a 412 (Precondition
|
||||
Failed) error.</p>
|
||||
<p>There are two common use cases:</p>
|
||||
<ul>
|
||||
<li>
|
||||
<p>In conjunction non-safe methods, like POST, it can be used to
|
||||
implement an optimistic concurrency control, like done by some wikis:
|
||||
editions are rejected if the stored document has been modified since the
|
||||
original has been retrieved.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>In conjunction with a range request with a If-Range header, it can be
|
||||
used to ensure that the new fragment requested comes from an unmodified
|
||||
document.</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,6 @@
|
||||
<!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-Types that are acceptable for the response."><meta name="keywords" content="rust, rustlang, rust-lang, LAST_MODIFIED"><title>http::header::LAST_MODIFIED - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="LAST_MODIFIED" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">LAST_MODIFIED</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const LAST_MODIFIED: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Content-Types that are acceptable for the response.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<!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="Allows the server to point an interested client to another resource containing metadata about the requested resource."><meta name="keywords" content="rust, rustlang, rust-lang, LINK"><title>http::header::LINK - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="LINK" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">LINK</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const LINK: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Allows the server to point an interested client to another resource
|
||||
containing metadata about the requested resource.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,33 @@
|
||||
<!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="Indicates the URL to redirect a page to."><meta name="keywords" content="rust, rustlang, rust-lang, LOCATION"><title>http::header::LOCATION - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="LOCATION" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">LOCATION</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const LOCATION: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Indicates the URL to redirect a page to.</p>
|
||||
<p>The Location response header indicates the URL to redirect a page to. It
|
||||
only provides a meaning when served with a 3xx status response.</p>
|
||||
<p>The HTTP method used to make the new request to fetch the page pointed
|
||||
to by Location depends of the original method and of the kind of
|
||||
redirection:</p>
|
||||
<ul>
|
||||
<li>
|
||||
<p>If 303 (See Also) responses always lead to the use of a GET method,
|
||||
307 (Temporary Redirect) and 308 (Permanent Redirect) don’t change the
|
||||
method used in the original request;</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>301 (Permanent Redirect) and 302 (Found) doesn’t change the method
|
||||
most of the time, though older user-agents may (so you basically don’t
|
||||
know).</p>
|
||||
</li>
|
||||
</ul>
|
||||
<p>All responses with one of these status codes send a Location header.</p>
|
||||
<p>Beside redirect response, messages with 201 (Created) status also
|
||||
include the Location header. It indicates the URL to the newly created
|
||||
resource.</p>
|
||||
<p>Location and Content-Location are different: Location indicates the
|
||||
target of a redirection (or the URL of a newly created resource), while
|
||||
Content-Location indicates the direct URL to use to access the resource
|
||||
when content negotiation happened, without the need of further content
|
||||
negotiation. Location is a header associated with the response, while
|
||||
Content-Location is associated with the entity returned.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<!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="Indicates the max number of intermediaries the request should be sent through."><meta name="keywords" content="rust, rustlang, rust-lang, MAX_FORWARDS"><title>http::header::MAX_FORWARDS - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="MAX_FORWARDS" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">MAX_FORWARDS</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const MAX_FORWARDS: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Indicates the max number of intermediaries the request should be sent
|
||||
through.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<!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="Indicates where a fetch originates from."><meta name="keywords" content="rust, rustlang, rust-lang, ORIGIN"><title>http::header::ORIGIN - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="ORIGIN" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">ORIGIN</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const ORIGIN: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Indicates where a fetch originates from.</p>
|
||||
<p>It doesn’t include any path information, but only the server name. It is
|
||||
sent with CORS requests, as well as with POST requests. It is similar to
|
||||
the Referer header, but, unlike this header, it doesn’t disclose the
|
||||
whole path.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<!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.0 header usually used for backwards compatibility."><meta name="keywords" content="rust, rustlang, rust-lang, PRAGMA"><title>http::header::PRAGMA - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="PRAGMA" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">PRAGMA</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const PRAGMA: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>HTTP/1.0 header usually used for backwards compatibility.</p>
|
||||
<p>The Pragma HTTP/1.0 general header is an implementation-specific header
|
||||
that may have various effects along the request-response chain. It is
|
||||
used for backwards compatibility with HTTP/1.0 caches where the
|
||||
Cache-Control HTTP/1.1 header is not yet present.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,18 @@
|
||||
<!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="Defines the authentication method that should be used to gain access to a proxy."><meta name="keywords" content="rust, rustlang, rust-lang, PROXY_AUTHENTICATE"><title>http::header::PROXY_AUTHENTICATE - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="PROXY_AUTHENTICATE" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">PROXY_AUTHENTICATE</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const PROXY_AUTHENTICATE: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Defines the authentication method that should be used to gain access to
|
||||
a proxy.</p>
|
||||
<p>Unlike <code>www-authenticate</code>, the <code>proxy-authenticate</code> header field applies
|
||||
only to the next outbound client on the response chain. This is because
|
||||
only the client that chose a given proxy is likely to have the
|
||||
credentials necessary for authentication. However, when multiple proxies
|
||||
are used within the same administrative domain, such as office and
|
||||
regional caching proxies within a large corporate network, it is common
|
||||
for credentials to be generated by the user agent and passed through the
|
||||
hierarchy until consumed. Hence, in such a configuration, it will appear
|
||||
as if Proxy-Authenticate is being forwarded because each proxy will send
|
||||
the same challenge set.</p>
|
||||
<p>The <code>proxy-authenticate</code> header is sent along with a <code>407 Proxy Authentication Required</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,9 @@
|
||||
<!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="Contains the credentials to authenticate a user agent to a proxy server."><meta name="keywords" content="rust, rustlang, rust-lang, PROXY_AUTHORIZATION"><title>http::header::PROXY_AUTHORIZATION - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="PROXY_AUTHORIZATION" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">PROXY_AUTHORIZATION</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const PROXY_AUTHORIZATION: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Contains the credentials to authenticate a user agent to a proxy server.</p>
|
||||
<p>This header is usually included after the server has responded with a
|
||||
407 Proxy Authentication Required status and the Proxy-Authenticate
|
||||
header.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<!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="Associates a specific cryptographic public key with a certain server."><meta name="keywords" content="rust, rustlang, rust-lang, PUBLIC_KEY_PINS"><title>http::header::PUBLIC_KEY_PINS - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="PUBLIC_KEY_PINS" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">PUBLIC_KEY_PINS</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const PUBLIC_KEY_PINS: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Associates a specific cryptographic public key with a certain server.</p>
|
||||
<p>This decreases the risk of MITM attacks with forged certificates. If one
|
||||
or several keys are pinned and none of them are used by the server, the
|
||||
browser will not accept the response as legitimate, and will not display
|
||||
it.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,9 @@
|
||||
<!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="Sends reports of pinning violation to the report-uri specified in the header."><meta name="keywords" content="rust, rustlang, rust-lang, PUBLIC_KEY_PINS_REPORT_ONLY"><title>http::header::PUBLIC_KEY_PINS_REPORT_ONLY - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="PUBLIC_KEY_PINS_REPORT_ONLY" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">PUBLIC_KEY_PINS_REPORT_ONLY</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const PUBLIC_KEY_PINS_REPORT_ONLY: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Sends reports of pinning violation to the report-uri specified in the
|
||||
header.</p>
|
||||
<p>Unlike <code>Public-Key-Pins</code>, this header still allows browsers to connect
|
||||
to the server if the pinning is violated.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,12 @@
|
||||
<!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="Indicates the part of a document that the server should return."><meta name="keywords" content="rust, rustlang, rust-lang, RANGE"><title>http::header::RANGE - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="RANGE" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">RANGE</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const RANGE: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Indicates the part of a document that the server should return.</p>
|
||||
<p>Several parts can be requested with one Range header at once, and the
|
||||
server may send back these ranges in a multipart document. If the server
|
||||
sends back ranges, it uses the 206 Partial Content for the response. If
|
||||
the ranges are invalid, the server returns the 416 Range Not Satisfiable
|
||||
error. The server can also ignore the Range header and return the whole
|
||||
document with a 200 status code.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<!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="Contains the address of the previous web page from which a link to the currently requested page was followed."><meta name="keywords" content="rust, rustlang, rust-lang, REFERER"><title>http::header::REFERER - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="REFERER" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">REFERER</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const REFERER: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Contains the address of the previous web page from which a link to the
|
||||
currently requested page was followed.</p>
|
||||
<p>The Referer header allows servers to identify where people are visiting
|
||||
them from and may use that data for analytics, logging, or optimized
|
||||
caching, for example.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<!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="Governs which referrer information should be included with requests made."><meta name="keywords" content="rust, rustlang, rust-lang, REFERRER_POLICY"><title>http::header::REFERRER_POLICY - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="REFERRER_POLICY" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">REFERRER_POLICY</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const REFERRER_POLICY: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Governs which referrer information should be included with requests
|
||||
made.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<!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="Informs the web browser that the current page or frame should be refreshed."><meta name="keywords" content="rust, rustlang, rust-lang, REFRESH"><title>http::header::REFRESH - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="REFRESH" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">REFRESH</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const REFRESH: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Informs the web browser that the current page or frame should be
|
||||
refreshed.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,19 @@
|
||||
<!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="The Retry-After response HTTP header indicates how long the user agent should wait before making a follow-up request. There are two main cases this header is used:"><meta name="keywords" content="rust, rustlang, rust-lang, RETRY_AFTER"><title>http::header::RETRY_AFTER - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="RETRY_AFTER" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">RETRY_AFTER</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const RETRY_AFTER: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>The Retry-After response HTTP header indicates how long the user agent
|
||||
should wait before making a follow-up request. There are two main cases
|
||||
this header is used:</p>
|
||||
<ul>
|
||||
<li>
|
||||
<p>When sent with a 503 (Service Unavailable) response, it indicates how
|
||||
long the service is expected to be unavailable.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>When sent with a redirect response, such as 301 (Moved Permanently),
|
||||
it indicates the minimum time that the user agent is asked to wait
|
||||
before issuing the redirected request.</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,9 @@
|
||||
<!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="The |Sec-WebSocket-Accept| header field is used in the WebSocket opening handshake. It is sent from the server to the client to confirm that the server is willing to initiate the WebSocket connection."><meta name="keywords" content="rust, rustlang, rust-lang, SEC_WEBSOCKET_ACCEPT"><title>http::header::SEC_WEBSOCKET_ACCEPT - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="SEC_WEBSOCKET_ACCEPT" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">SEC_WEBSOCKET_ACCEPT</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const SEC_WEBSOCKET_ACCEPT: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>The |Sec-WebSocket-Accept| header field is used in the WebSocket
|
||||
opening handshake. It is sent from the server to the client to
|
||||
confirm that the server is willing to initiate the WebSocket
|
||||
connection.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<!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="The |Sec-WebSocket-Extensions| header field is used in the WebSocket opening handshake. It is initially sent from the client to the server, and then subsequently sent from the server to the client, to agree on a set of protocol-level extensions to use for the duration of the connection."><meta name="keywords" content="rust, rustlang, rust-lang, SEC_WEBSOCKET_EXTENSIONS"><title>http::header::SEC_WEBSOCKET_EXTENSIONS - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="SEC_WEBSOCKET_EXTENSIONS" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">SEC_WEBSOCKET_EXTENSIONS</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const SEC_WEBSOCKET_EXTENSIONS: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>The |Sec-WebSocket-Extensions| header field is used in the WebSocket
|
||||
opening handshake. It is initially sent from the client to the
|
||||
server, and then subsequently sent from the server to the client, to
|
||||
agree on a set of protocol-level extensions to use for the duration
|
||||
of the connection.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,12 @@
|
||||
<!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="The |Sec-WebSocket-Key| header field is used in the WebSocket opening handshake. It is sent from the client to the server to provide part of the information used by the server to prove that it received a valid WebSocket opening handshake. This helps ensure that the server does not accept connections from non-WebSocket clients (e.g., HTTP clients) that are being abused to send data to unsuspecting WebSocket servers."><meta name="keywords" content="rust, rustlang, rust-lang, SEC_WEBSOCKET_KEY"><title>http::header::SEC_WEBSOCKET_KEY - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="SEC_WEBSOCKET_KEY" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">SEC_WEBSOCKET_KEY</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const SEC_WEBSOCKET_KEY: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>The |Sec-WebSocket-Key| header field is used in the WebSocket opening
|
||||
handshake. It is sent from the client to the server to provide part
|
||||
of the information used by the server to prove that it received a
|
||||
valid WebSocket opening handshake. This helps ensure that the server
|
||||
does not accept connections from non-WebSocket clients (e.g., HTTP
|
||||
clients) that are being abused to send data to unsuspecting WebSocket
|
||||
servers.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<!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="The |Sec-WebSocket-Protocol| header field is used in the WebSocket opening handshake. It is sent from the client to the server and back from the server to the client to confirm the subprotocol of the connection. This enables scripts to both select a subprotocol and be sure that the server agreed to serve that subprotocol."><meta name="keywords" content="rust, rustlang, rust-lang, SEC_WEBSOCKET_PROTOCOL"><title>http::header::SEC_WEBSOCKET_PROTOCOL - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="SEC_WEBSOCKET_PROTOCOL" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">SEC_WEBSOCKET_PROTOCOL</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const SEC_WEBSOCKET_PROTOCOL: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>The |Sec-WebSocket-Protocol| header field is used in the WebSocket
|
||||
opening handshake. It is sent from the client to the server and back
|
||||
from the server to the client to confirm the subprotocol of the
|
||||
connection. This enables scripts to both select a subprotocol and be
|
||||
sure that the server agreed to serve that subprotocol.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -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="The |Sec-WebSocket-Version| header field is used in the WebSocket opening handshake. It is sent from the client to the server to indicate the protocol version of the connection. This enables servers to correctly interpret the opening handshake and subsequent data being sent from the data, and close the connection if the server cannot interpret that data in a safe manner."><meta name="keywords" content="rust, rustlang, rust-lang, SEC_WEBSOCKET_VERSION"><title>http::header::SEC_WEBSOCKET_VERSION - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="SEC_WEBSOCKET_VERSION" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">SEC_WEBSOCKET_VERSION</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const SEC_WEBSOCKET_VERSION: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>The |Sec-WebSocket-Version| header field is used in the WebSocket
|
||||
opening handshake. It is sent from the client to the server to
|
||||
indicate the protocol version of the connection. This enables
|
||||
servers to correctly interpret the opening handshake and subsequent
|
||||
data being sent from the data, and close the connection if the server
|
||||
cannot interpret that data in a safe manner.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -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="Contains information about the software used by the origin server to handle the request."><meta name="keywords" content="rust, rustlang, rust-lang, SERVER"><title>http::header::SERVER - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="SERVER" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">SERVER</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const SERVER: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Contains information about the software used by the origin server to
|
||||
handle the request.</p>
|
||||
<p>Overly long and detailed Server values should be avoided as they
|
||||
potentially reveal internal implementation details that might make it
|
||||
(slightly) easier for attackers to find and exploit known security
|
||||
holes.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,6 @@
|
||||
<!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="Used to send cookies from the server to the user agent."><meta name="keywords" content="rust, rustlang, rust-lang, SET_COOKIE"><title>http::header::SET_COOKIE - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="SET_COOKIE" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">SET_COOKIE</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const SET_COOKIE: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Used to send cookies from the server to the user agent.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,6 @@
|
||||
<!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="Tells the client to communicate with HTTPS instead of using HTTP."><meta name="keywords" content="rust, rustlang, rust-lang, STRICT_TRANSPORT_SECURITY"><title>http::header::STRICT_TRANSPORT_SECURITY - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="STRICT_TRANSPORT_SECURITY" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">STRICT_TRANSPORT_SECURITY</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const STRICT_TRANSPORT_SECURITY: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Tells the client to communicate with HTTPS instead of using HTTP.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,12 @@
|
||||
<!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="Informs the server of transfer encodings willing to be accepted as part of the response."><meta name="keywords" content="rust, rustlang, rust-lang, TE"><title>http::header::TE - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="TE" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">TE</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const TE: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Informs the server of transfer encodings willing to be accepted as part
|
||||
of the response.</p>
|
||||
<p>See also the Transfer-Encoding response header for more details on
|
||||
transfer encodings. Note that chunked is always acceptable for HTTP/1.1
|
||||
recipients and you that don’t have to specify “chunked” using the TE
|
||||
header. However, it is useful for setting if the client is accepting
|
||||
trailer fields in a chunked transfer coding using the “trailers” value.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<!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="Allows the sender to include additional fields at the end of chunked messages."><meta name="keywords" content="rust, rustlang, rust-lang, TRAILER"><title>http::header::TRAILER - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="TRAILER" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">TRAILER</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const TRAILER: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Allows the sender to include additional fields at the end of chunked
|
||||
messages.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -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="Specifies the form of encoding used to safely transfer the entity to the client."><meta name="keywords" content="rust, rustlang, rust-lang, TRANSFER_ENCODING"><title>http::header::TRANSFER_ENCODING - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="TRANSFER_ENCODING" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">TRANSFER_ENCODING</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const TRANSFER_ENCODING: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Specifies the form of encoding used to safely transfer the entity to the
|
||||
client.</p>
|
||||
<p><code>transfer-encoding</code> is a hop-by-hop header, that is applying to a
|
||||
message between two nodes, not to a resource itself. Each segment of a
|
||||
multi-node connection can use different <code>transfer-encoding</code> values. If
|
||||
you want to compress data over the whole connection, use the end-to-end
|
||||
header <code>content-encoding</code> header instead.</p>
|
||||
<p>When present on a response to a <code>HEAD</code> request that has no body, it
|
||||
indicates the value that would have applied to the corresponding <code>GET</code>
|
||||
message.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,6 @@
|
||||
<!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="Used as part of the exchange to upgrade the protocol."><meta name="keywords" content="rust, rustlang, rust-lang, UPGRADE"><title>http::header::UPGRADE - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="UPGRADE" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">UPGRADE</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const UPGRADE: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Used as part of the exchange to upgrade the protocol.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<!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="Sends a signal to the server expressing the client’s preference for an encrypted and authenticated response."><meta name="keywords" content="rust, rustlang, rust-lang, UPGRADE_INSECURE_REQUESTS"><title>http::header::UPGRADE_INSECURE_REQUESTS - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="UPGRADE_INSECURE_REQUESTS" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">UPGRADE_INSECURE_REQUESTS</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const UPGRADE_INSECURE_REQUESTS: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Sends a signal to the server expressing the client’s preference for an
|
||||
encrypted and authenticated response.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<!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="Contains a string that allows identifying the requesting client’s software."><meta name="keywords" content="rust, rustlang, rust-lang, USER_AGENT"><title>http::header::USER_AGENT - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="USER_AGENT" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">USER_AGENT</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const USER_AGENT: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Contains a string that allows identifying the requesting client’s
|
||||
software.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,13 @@
|
||||
<!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="Determines how to match future requests with cached responses."><meta name="keywords" content="rust, rustlang, rust-lang, VARY"><title>http::header::VARY - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="VARY" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">VARY</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const VARY: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Determines how to match future requests with cached responses.</p>
|
||||
<p>The <code>vary</code> HTTP response header determines how to match future request
|
||||
headers to decide whether a cached response can be used rather than
|
||||
requesting a fresh one from the origin server. It is used by the server
|
||||
to indicate which headers it used when selecting a representation of a
|
||||
resource in a content negotiation algorithm.</p>
|
||||
<p>The <code>vary</code> header should be set on a 304 Not Modified response exactly
|
||||
like it would have been set on an equivalent 200 OK response.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -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="Added by proxies to track routing."><meta name="keywords" content="rust, rustlang, rust-lang, VIA"><title>http::header::VIA - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="VIA" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">VIA</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const VIA: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Added by proxies to track routing.</p>
|
||||
<p>The <code>via</code> general header is added by proxies, both forward and reverse
|
||||
proxies, and can appear in the request headers and the response headers.
|
||||
It is used for tracking message forwards, avoiding request loops, and
|
||||
identifying the protocol capabilities of senders along the
|
||||
request/response chain.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<!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="General HTTP header contains information about possible problems with the status of the message."><meta name="keywords" content="rust, rustlang, rust-lang, WARNING"><title>http::header::WARNING - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="WARNING" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">WARNING</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const WARNING: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>General HTTP header contains information about possible problems with
|
||||
the status of the message.</p>
|
||||
<p>More than one <code>warning</code> header may appear in a response. Warning header
|
||||
fields can in general be applied to any message, however some warn-codes
|
||||
are specific to caches and can only be applied to response messages.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<!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="Defines the authentication method that should be used to gain access to a resource."><meta name="keywords" content="rust, rustlang, rust-lang, WWW_AUTHENTICATE"><title>http::header::WWW_AUTHENTICATE - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="WWW_AUTHENTICATE" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">WWW_AUTHENTICATE</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const WWW_AUTHENTICATE: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Defines the authentication method that should be used to gain access to
|
||||
a resource.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -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="Marker used by the server to indicate that the MIME types advertised in the `content-type` headers should not be changed and be followed."><meta name="keywords" content="rust, rustlang, rust-lang, X_CONTENT_TYPE_OPTIONS"><title>http::header::X_CONTENT_TYPE_OPTIONS - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="X_CONTENT_TYPE_OPTIONS" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">X_CONTENT_TYPE_OPTIONS</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const X_CONTENT_TYPE_OPTIONS: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Marker used by the server to indicate that the MIME types advertised in
|
||||
the <code>content-type</code> headers should not be changed and be followed.</p>
|
||||
<p>This allows to opt-out of MIME type sniffing, or, in other words, it is
|
||||
a way to say that the webmasters knew what they were doing.</p>
|
||||
<p>This header was introduced by Microsoft in IE 8 as a way for webmasters
|
||||
to block content sniffing that was happening and could transform
|
||||
non-executable MIME types into executable MIME types. Since then, other
|
||||
browsers have introduced it, even if their MIME sniffing algorithms were
|
||||
less aggressive.</p>
|
||||
<p>Site security testers usually expect this header to be set.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,14 @@
|
||||
<!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="Controls DNS prefetching."><meta name="keywords" content="rust, rustlang, rust-lang, X_DNS_PREFETCH_CONTROL"><title>http::header::X_DNS_PREFETCH_CONTROL - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="X_DNS_PREFETCH_CONTROL" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">X_DNS_PREFETCH_CONTROL</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const X_DNS_PREFETCH_CONTROL: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Controls DNS prefetching.</p>
|
||||
<p>The <code>x-dns-prefetch-control</code> HTTP response header controls DNS
|
||||
prefetching, a feature by which browsers proactively perform domain name
|
||||
resolution on both links that the user may choose to follow as well as
|
||||
URLs for items referenced by the document, including images, CSS,
|
||||
JavaScript, and so forth.</p>
|
||||
<p>This prefetching is performed in the background, so that the DNS is
|
||||
likely to have been resolved by the time the referenced items are
|
||||
needed. This reduces latency when the user clicks a link.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -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="Indicates whether or not a browser should be allowed to render a page in a frame."><meta name="keywords" content="rust, rustlang, rust-lang, X_FRAME_OPTIONS"><title>http::header::X_FRAME_OPTIONS - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="X_FRAME_OPTIONS" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">X_FRAME_OPTIONS</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const X_FRAME_OPTIONS: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Indicates whether or not a browser should be allowed to render a page in
|
||||
a frame.</p>
|
||||
<p>Sites can use this to avoid clickjacking attacks, by ensuring that their
|
||||
content is not embedded into other sites.</p>
|
||||
<p>The added security is only provided if the user accessing the document
|
||||
is using a browser supporting <code>x-frame-options</code>.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,13 @@
|
||||
<!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="Stop pages from loading when an XSS attack is detected."><meta name="keywords" content="rust, rustlang, rust-lang, X_XSS_PROTECTION"><title>http::header::X_XSS_PROTECTION - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="X_XSS_PROTECTION" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="constant" href="">X_XSS_PROTECTION</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/name.rs.html#146-965" title="goto source code">[src]</a></span></h1><pre class="rust const">pub const X_XSS_PROTECTION: <a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a>;</pre><div class="docblock"><p>Stop pages from loading when an XSS attack is detected.</p>
|
||||
<p>The HTTP X-XSS-Protection response header is a feature of Internet
|
||||
Explorer, Chrome and Safari that stops pages from loading when they
|
||||
detect reflected cross-site scripting (XSS) attacks. Although these
|
||||
protections are largely unnecessary in modern browsers when sites
|
||||
implement a strong Content-Security-Policy that disables the use of
|
||||
inline JavaScript (‘unsafe-inline’), they can still provide protections
|
||||
for users of older web browsers that don’t yet support CSP.</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,75 @@
|
||||
<!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="A view into a single location in a `HeaderMap`, which may be vacant or occupied."><meta name="keywords" content="rust, rustlang, rust-lang, Entry"><title>http::header::Entry - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc enum"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Enum Entry</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.Occupied">Occupied</a><a href="#variant.Vacant">Vacant</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.key">key</a><a href="#method.or_insert">or_insert</a><a href="#method.or_insert_with">or_insert_with</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Debug">Debug</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">!UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><p class="location"><a href="../index.html">http</a>::<wbr><a href="index.html">header</a></p><div id="sidebar-vars" data-name="Entry" data-ty="enum" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Enum <a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="enum" href="">Entry</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/map.rs.html#157-163" title="goto source code">[src]</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust enum">pub enum Entry<'a, T: 'a> {
|
||||
Occupied(<a class="struct" href="../../http/header/struct.OccupiedEntry.html" title="struct http::header::OccupiedEntry">OccupiedEntry</a><'a, T>),
|
||||
Vacant(<a class="struct" href="../../http/header/struct.VacantEntry.html" title="struct http::header::VacantEntry">VacantEntry</a><'a, T>),
|
||||
}</pre></div><div class="docblock"><p>A view into a single location in a <code>HeaderMap</code>, which may be vacant or occupied.</p>
|
||||
</div><h2 id="variants" class="variants small-section-header">
|
||||
Variants<a href="#variants" class="anchor"></a></h2>
|
||||
<div id="variant.Occupied" class="variant small-section-header"><a href="#variant.Occupied" class="anchor field"></a><code>Occupied(<a class="struct" href="../../http/header/struct.OccupiedEntry.html" title="struct http::header::OccupiedEntry">OccupiedEntry</a><'a, T>)</code></div><div class="docblock"><p>An occupied entry</p>
|
||||
</div><div id="variant.Vacant" class="variant small-section-header"><a href="#variant.Vacant" class="anchor field"></a><code>Vacant(<a class="struct" href="../../http/header/struct.VacantEntry.html" title="struct http::header::VacantEntry">VacantEntry</a><'a, T>)</code></div><div class="docblock"><p>A vacant entry</p>
|
||||
</div><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl<'a, T> <a class="enum" href="../../http/header/enum.Entry.html" title="enum http::header::Entry">Entry</a><'a, T></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../src/http/header/map.rs.html#2264-2361" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.or_insert" class="method"><code>pub fn <a href="#method.or_insert" class="fnname">or_insert</a>(self, default: T) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>T</code><a class="srclink" href="../../src/http/header/map.rs.html#2291-2298" title="goto source code">[src]</a></h4><div class="docblock"><p>Ensures a value is in the entry by inserting the default if empty.</p>
|
||||
<p>Returns a mutable reference to the <strong>first</strong> value in the entry.</p>
|
||||
<h1 id="examples" class="section-header"><a href="#examples">Examples</a></h1>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered">
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">map</span>: <span class="ident">HeaderMap</span><span class="op"><</span><span class="ident">u32</span><span class="op">></span> <span class="op">=</span> <span class="ident">HeaderMap</span>::<span class="ident">default</span>();
|
||||
|
||||
<span class="kw">let</span> <span class="ident">headers</span> <span class="op">=</span> <span class="kw-2">&</span>[
|
||||
<span class="string">"content-length"</span>,
|
||||
<span class="string">"x-hello"</span>,
|
||||
<span class="string">"Content-Length"</span>,
|
||||
<span class="string">"x-world"</span>,
|
||||
];
|
||||
|
||||
<span class="kw">for</span> <span class="kw-2">&</span><span class="ident">header</span> <span class="kw">in</span> <span class="ident">headers</span> {
|
||||
<span class="kw">let</span> <span class="ident">counter</span> <span class="op">=</span> <span class="ident">map</span>.<span class="ident">entry</span>(<span class="ident">header</span>)
|
||||
.<span class="ident">or_insert</span>(<span class="number">0</span>);
|
||||
<span class="kw-2">*</span><span class="ident">counter</span> <span class="op">+</span><span class="op">=</span> <span class="number">1</span>;
|
||||
}
|
||||
|
||||
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">map</span>[<span class="string">"content-length"</span>], <span class="number">2</span>);
|
||||
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">map</span>[<span class="string">"x-hello"</span>], <span class="number">1</span>);</pre></div>
|
||||
</div><h4 id="method.or_insert_with" class="method"><code>pub fn <a href="#method.or_insert_with" class="fnname">or_insert_with</a><F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>() -> T>(self, default: F) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>T</code><a class="srclink" href="../../src/http/header/map.rs.html#2334-2341" title="goto source code">[src]</a></h4><div class="docblock"><p>Ensures a value is in the entry by inserting the result of the default
|
||||
function if empty.</p>
|
||||
<p>The default function is not called if the entry exists in the map.
|
||||
Returns a mutable reference to the <strong>first</strong> value in the entry.</p>
|
||||
<h1 id="examples-1" class="section-header"><a href="#examples-1">Examples</a></h1>
|
||||
<p>Basic usage.</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered">
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">map</span> <span class="op">=</span> <span class="ident">HeaderMap</span>::<span class="ident">new</span>();
|
||||
|
||||
<span class="kw">let</span> <span class="ident">res</span> <span class="op">=</span> <span class="ident">map</span>.<span class="ident">entry</span>(<span class="string">"x-hello"</span>)
|
||||
.<span class="ident">or_insert_with</span>(<span class="op">|</span><span class="op">|</span> <span class="string">"world"</span>.<span class="ident">parse</span>().<span class="ident">unwrap</span>());
|
||||
|
||||
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">res</span>, <span class="string">"world"</span>);</pre></div>
|
||||
<p>The default function is not called if the entry exists in the map.</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered">
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">map</span> <span class="op">=</span> <span class="ident">HeaderMap</span>::<span class="ident">new</span>();
|
||||
<span class="ident">map</span>.<span class="ident">insert</span>(<span class="ident">HOST</span>, <span class="string">"world"</span>.<span class="ident">parse</span>().<span class="ident">unwrap</span>());
|
||||
|
||||
<span class="kw">let</span> <span class="ident">res</span> <span class="op">=</span> <span class="ident">map</span>.<span class="ident">entry</span>(<span class="string">"host"</span>)
|
||||
.<span class="ident">or_insert_with</span>(<span class="op">|</span><span class="op">|</span> <span class="macro">unreachable</span><span class="macro">!</span>());
|
||||
|
||||
|
||||
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">res</span>, <span class="string">"world"</span>);</pre></div>
|
||||
</div><h4 id="method.key" class="method"><code>pub fn <a href="#method.key" class="fnname">key</a>(&self) -> &<a class="struct" href="../../http/header/struct.HeaderName.html" title="struct http::header::HeaderName">HeaderName</a></code><a class="srclink" href="../../src/http/header/map.rs.html#2353-2360" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns a reference to the entry’s key</p>
|
||||
<h1 id="examples-2" class="section-header"><a href="#examples-2">Examples</a></h1>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered">
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">map</span> <span class="op">=</span> <span class="ident">HeaderMap</span>::<span class="ident">new</span>();
|
||||
|
||||
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">map</span>.<span class="ident">entry</span>(<span class="string">"x-hello"</span>).<span class="ident">key</span>(), <span class="string">"x-hello"</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-Debug" class="impl"><code class="in-band">impl<'a, T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> + 'a> <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="enum" href="../../http/header/enum.Entry.html" title="enum http::header::Entry">Entry</a><'a, T></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../../src/http/header/map.rs.html#156" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../../src/http/header/map.rs.html#156" 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></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><h3 id="impl-RefUnwindSafe" class="impl"><code class="in-band">impl<'a, T> <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="enum" href="../../http/header/enum.Entry.html" title="enum http::header::Entry">Entry</a><'a, T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a>, </span></code><a href="#impl-RefUnwindSafe" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-Send" class="impl"><code class="in-band">impl<'a, T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="enum" href="../../http/header/enum.Entry.html" title="enum http::header::Entry">Entry</a><'a, T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>, </span></code><a href="#impl-Send" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-Sync" class="impl"><code class="in-band">impl<'a, T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="enum" href="../../http/header/enum.Entry.html" title="enum http::header::Entry">Entry</a><'a, T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>, </span></code><a href="#impl-Sync" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-Unpin" class="impl"><code class="in-band">impl<'a, T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="enum" href="../../http/header/enum.Entry.html" title="enum http::header::Entry">Entry</a><'a, T></code><a href="#impl-Unpin" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-UnwindSafe" class="impl"><code class="in-band">impl<'a, T> !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="enum" href="../../http/header/enum.Entry.html" title="enum http::header::Entry">Entry</a><'a, T></code><a href="#impl-UnwindSafe" class="anchor"></a></h3><div class="impl-items"></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><h3 id="impl-Any" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Any" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#131-135" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.type_id" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#132" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id="impl-Borrow%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Borrow%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#207-211" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#208" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id="impl-BorrowMut%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-BorrowMut%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-218" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow_mut" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#215" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
</div></div><h3 id="impl-From%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href="#impl-From%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#545-549" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(t: T) -> T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#546" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id="impl-Into%3CU%3E" class="impl"><code class="in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href="#impl-Into%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#534-541" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.into" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> U</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#538" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id="impl-TryFrom%3CU%3E" class="impl"><code class="in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href="#impl-TryFrom%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#582-591" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Error" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id="method.try_from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from" class="fnname">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#588" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id="impl-TryInto%3CU%3E" class="impl"><code class="in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href="#impl-TryInto%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#568-577" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Error-1" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id="method.try_into" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into" class="fnname">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#574" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,216 @@
|
||||
<!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 header types"><meta name="keywords" content="rust, rustlang, rust-lang, header"><title>http::header - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../http/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Module header</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#constants">Constants</a></li><li><a href="#traits">Traits</a></li></ul></div><p class="location"><a href="../index.html">http</a></p><div id="sidebar-vars" data-name="header" data-ty="mod" data-relpath="../"></div><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../index.html">http</a>::<wbr><a class="mod" href="">header</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/http/header/mod.rs.html#1-172" title="goto source code">[src]</a></span></h1><div class="docblock"><p>HTTP header types</p>
|
||||
<p>The module provides <a href="struct.HeaderName.html"><code>HeaderName</code></a>, <a href="struct.HeaderMap.html"><code>HeaderMap</code></a>, and a number of types
|
||||
used for interacting with <code>HeaderMap</code>. These types allow representing both
|
||||
HTTP/1 and HTTP/2 headers.</p>
|
||||
<h1 id="headername" class="section-header"><a href="#headername"><code>HeaderName</code></a></h1>
|
||||
<p>The <code>HeaderName</code> type represents both standard header names as well as
|
||||
custom header names. The type handles the case insensitive nature of header
|
||||
names and is used as the key portion of <code>HeaderMap</code>. Header names are
|
||||
normalized to lower case. In other words, when creating a <code>HeaderName</code> with
|
||||
a string, even if upper case characters are included, when getting a string
|
||||
representation of the <code>HeaderName</code>, it will be all lower case. This allows
|
||||
for faster <code>HeaderMap</code> comparison operations.</p>
|
||||
<p>The internal representation is optimized to efficiently handle the cases
|
||||
most commonly encountered when working with HTTP. Standard header names are
|
||||
special cased and are represented internally as an enum. Short custom
|
||||
headers will be stored directly in the <code>HeaderName</code> struct and will not
|
||||
incur any allocation overhead, however longer strings will require an
|
||||
allocation for storage.</p>
|
||||
<h2 id="limitations" class="section-header"><a href="#limitations">Limitations</a></h2>
|
||||
<p><code>HeaderName</code> has a max length of 32,768 for header names. Attempting to
|
||||
parse longer names will result in a panic.</p>
|
||||
<h1 id="headermap" class="section-header"><a href="#headermap"><code>HeaderMap</code></a></h1>
|
||||
<p><code>HeaderMap</code> is a map structure of header names highly optimized for use
|
||||
cases common with HTTP. It is a <a href="https://en.wikipedia.org/wiki/Multimap">multimap</a> structure, where each header name
|
||||
may have multiple associated header values. Given this, some of the APIs
|
||||
diverge from <a href="https://doc.rust-lang.org/std/collections/struct.HashMap.html"><code>HashMap</code></a>.</p>
|
||||
<h2 id="overview" class="section-header"><a href="#overview">Overview</a></h2>
|
||||
<p>Just like <code>HashMap</code> in Rust’s stdlib, <code>HeaderMap</code> is based on <a href="https://en.wikipedia.org/wiki/Hash_table#Robin_Hood_hashing">Robin Hood
|
||||
hashing</a>. This algorithm tends to reduce the worst case search times in the
|
||||
table and enables high load factors without seriously affecting performance.
|
||||
Internally, keys and values are stored in vectors. As such, each insertion
|
||||
will not incur allocation overhead. However, once the underlying vector
|
||||
storage is full, a larger vector must be allocated and all values copied.</p>
|
||||
<h2 id="deterministic-ordering" class="section-header"><a href="#deterministic-ordering">Deterministic ordering</a></h2>
|
||||
<p>Unlike Rust’s <code>HashMap</code>, values in <code>HeaderMap</code> are deterministically
|
||||
ordered. Roughly, values are ordered by insertion. This means that a
|
||||
function that deterministically operates on a header map can rely on the
|
||||
iteration order to remain consistent across processes and platforms.</p>
|
||||
<h2 id="adaptive-hashing" class="section-header"><a href="#adaptive-hashing">Adaptive hashing</a></h2>
|
||||
<p><code>HeaderMap</code> uses an adaptive hashing strategy in order to efficiently handle
|
||||
most common cases. All standard headers have statically computed hash values
|
||||
which removes the need to perform any hashing of these headers at runtime.
|
||||
The default hash function emphasizes performance over robustness. However,
|
||||
<code>HeaderMap</code> detects high collision rates and switches to a secure hash
|
||||
function in those events. The threshold is set such that only denial of
|
||||
service attacks should trigger it.</p>
|
||||
<h2 id="limitations-1" class="section-header"><a href="#limitations-1">Limitations</a></h2>
|
||||
<p><code>HeaderMap</code> can store a maximum of 32,768 headers (header name / value
|
||||
pairs). Attempting to insert more will result in a panic.</p>
|
||||
</div><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<table><tr class="module-item"><td><a class="struct" href="struct.Drain.html" title="http::header::Drain struct">Drain</a></td><td class="docblock-short"><p>A drain iterator for <code>HeaderMap</code>.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="struct" href="struct.GetAll.html" title="http::header::GetAll struct">GetAll</a></td><td class="docblock-short"><p>A view to all values stored in a single entry.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="struct" href="struct.HeaderMap.html" title="http::header::HeaderMap struct">HeaderMap</a></td><td class="docblock-short"><p>A set of HTTP headers</p>
|
||||
</td></tr><tr class="module-item"><td><a class="struct" href="struct.HeaderName.html" title="http::header::HeaderName struct">HeaderName</a></td><td class="docblock-short"><p>Represents an HTTP header field name</p>
|
||||
</td></tr><tr class="module-item"><td><a class="struct" href="struct.HeaderValue.html" title="http::header::HeaderValue struct">HeaderValue</a></td><td class="docblock-short"><p>Represents an HTTP header field value.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="struct" href="struct.IntoIter.html" title="http::header::IntoIter struct">IntoIter</a></td><td class="docblock-short"><p>An owning iterator over the entries of a <code>HeaderMap</code>.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="struct" href="struct.InvalidHeaderName.html" title="http::header::InvalidHeaderName struct">InvalidHeaderName</a></td><td class="docblock-short"><p>A possible error when converting a <code>HeaderName</code> from another type.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="struct" href="struct.InvalidHeaderValue.html" title="http::header::InvalidHeaderValue struct">InvalidHeaderValue</a></td><td class="docblock-short"><p>A possible error when converting a <code>HeaderValue</code> from a string or byte
|
||||
slice.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="struct" href="struct.Iter.html" title="http::header::Iter struct">Iter</a></td><td class="docblock-short"><p><code>HeaderMap</code> entry iterator.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="struct" href="struct.IterMut.html" title="http::header::IterMut struct">IterMut</a></td><td class="docblock-short"><p><code>HeaderMap</code> mutable entry iterator</p>
|
||||
</td></tr><tr class="module-item"><td><a class="struct" href="struct.Keys.html" title="http::header::Keys struct">Keys</a></td><td class="docblock-short"><p>An iterator over <code>HeaderMap</code> keys.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="struct" href="struct.OccupiedEntry.html" title="http::header::OccupiedEntry struct">OccupiedEntry</a></td><td class="docblock-short"><p>A view into a single occupied location in a <code>HeaderMap</code>.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="struct" href="struct.ToStrError.html" title="http::header::ToStrError struct">ToStrError</a></td><td class="docblock-short"><p>A possible error when converting a <code>HeaderValue</code> to a string representation.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="struct" href="struct.VacantEntry.html" title="http::header::VacantEntry struct">VacantEntry</a></td><td class="docblock-short"><p>A view into a single empty location in a <code>HeaderMap</code>.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="struct" href="struct.ValueDrain.html" title="http::header::ValueDrain struct">ValueDrain</a></td><td class="docblock-short"><p>An drain iterator of all values associated with a single header name.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="struct" href="struct.ValueIter.html" title="http::header::ValueIter struct">ValueIter</a></td><td class="docblock-short"><p>An iterator of all values associated with a single header name.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="struct" href="struct.ValueIterMut.html" title="http::header::ValueIterMut struct">ValueIterMut</a></td><td class="docblock-short"><p>A mutable iterator of all values associated with a single header name.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="struct" href="struct.Values.html" title="http::header::Values struct">Values</a></td><td class="docblock-short"><p><code>HeaderMap</code> value iterator.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="struct" href="struct.ValuesMut.html" title="http::header::ValuesMut struct">ValuesMut</a></td><td class="docblock-short"><p><code>HeaderMap</code> mutable value iterator</p>
|
||||
</td></tr></table><h2 id="enums" class="section-header"><a href="#enums">Enums</a></h2>
|
||||
<table><tr class="module-item"><td><a class="enum" href="enum.Entry.html" title="http::header::Entry enum">Entry</a></td><td class="docblock-short"><p>A view into a single location in a <code>HeaderMap</code>, which may be vacant or occupied.</p>
|
||||
</td></tr></table><h2 id="constants" class="section-header"><a href="#constants">Constants</a></h2>
|
||||
<table><tr class="module-item"><td><a class="constant" href="constant.ACCEPT.html" title="http::header::ACCEPT constant">ACCEPT</a></td><td class="docblock-short"><p>Advertises which content types the client is able to understand.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.ACCEPT_CHARSET.html" title="http::header::ACCEPT_CHARSET constant">ACCEPT_CHARSET</a></td><td class="docblock-short"><p>Advertises which character set the client is able to understand.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.ACCEPT_ENCODING.html" title="http::header::ACCEPT_ENCODING constant">ACCEPT_ENCODING</a></td><td class="docblock-short"><p>Advertises which content encoding the client is able to understand.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.ACCEPT_LANGUAGE.html" title="http::header::ACCEPT_LANGUAGE constant">ACCEPT_LANGUAGE</a></td><td class="docblock-short"><p>Advertises which languages the client is able to understand.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.ACCEPT_RANGES.html" title="http::header::ACCEPT_RANGES constant">ACCEPT_RANGES</a></td><td class="docblock-short"><p>Marker used by the server to advertise partial request support.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.ACCESS_CONTROL_ALLOW_CREDENTIALS.html" title="http::header::ACCESS_CONTROL_ALLOW_CREDENTIALS constant">ACCESS_CONTROL_ALLOW_CREDENTIALS</a></td><td class="docblock-short"><p>Preflight response indicating if the response to the request can be
|
||||
exposed to the page.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.ACCESS_CONTROL_ALLOW_HEADERS.html" title="http::header::ACCESS_CONTROL_ALLOW_HEADERS constant">ACCESS_CONTROL_ALLOW_HEADERS</a></td><td class="docblock-short"><p>Preflight response indicating permitted HTTP headers.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.ACCESS_CONTROL_ALLOW_METHODS.html" title="http::header::ACCESS_CONTROL_ALLOW_METHODS constant">ACCESS_CONTROL_ALLOW_METHODS</a></td><td class="docblock-short"><p>Preflight header response indicating permitted access methods.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.ACCESS_CONTROL_ALLOW_ORIGIN.html" title="http::header::ACCESS_CONTROL_ALLOW_ORIGIN constant">ACCESS_CONTROL_ALLOW_ORIGIN</a></td><td class="docblock-short"><p>Indicates whether the response can be shared with resources with the
|
||||
given origin.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.ACCESS_CONTROL_EXPOSE_HEADERS.html" title="http::header::ACCESS_CONTROL_EXPOSE_HEADERS constant">ACCESS_CONTROL_EXPOSE_HEADERS</a></td><td class="docblock-short"><p>Indicates which headers can be exposed as part of the response by
|
||||
listing their names.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.ACCESS_CONTROL_MAX_AGE.html" title="http::header::ACCESS_CONTROL_MAX_AGE constant">ACCESS_CONTROL_MAX_AGE</a></td><td class="docblock-short"><p>Indicates how long the results of a preflight request can be cached.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.ACCESS_CONTROL_REQUEST_HEADERS.html" title="http::header::ACCESS_CONTROL_REQUEST_HEADERS constant">ACCESS_CONTROL_REQUEST_HEADERS</a></td><td class="docblock-short"><p>Informs the server which HTTP headers will be used when an actual
|
||||
request is made.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.ACCESS_CONTROL_REQUEST_METHOD.html" title="http::header::ACCESS_CONTROL_REQUEST_METHOD constant">ACCESS_CONTROL_REQUEST_METHOD</a></td><td class="docblock-short"><p>Informs the server know which HTTP method will be used when the actual
|
||||
request is made.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.AGE.html" title="http::header::AGE constant">AGE</a></td><td class="docblock-short"><p>Indicates the time in seconds the object has been in a proxy cache.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.ALLOW.html" title="http::header::ALLOW constant">ALLOW</a></td><td class="docblock-short"><p>Lists the set of methods support by a resource.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.ALT_SVC.html" title="http::header::ALT_SVC constant">ALT_SVC</a></td><td class="docblock-short"><p>Advertises the availability of alternate services to clients.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.AUTHORIZATION.html" title="http::header::AUTHORIZATION constant">AUTHORIZATION</a></td><td class="docblock-short"><p>Contains the credentials to authenticate a user agent with a server.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.CACHE_CONTROL.html" title="http::header::CACHE_CONTROL constant">CACHE_CONTROL</a></td><td class="docblock-short"><p>Specifies directives for caching mechanisms in both requests and
|
||||
responses.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.CONNECTION.html" title="http::header::CONNECTION constant">CONNECTION</a></td><td class="docblock-short"><p>Controls whether or not the network connection stays open after the
|
||||
current transaction finishes.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.CONTENT_DISPOSITION.html" title="http::header::CONTENT_DISPOSITION constant">CONTENT_DISPOSITION</a></td><td class="docblock-short"><p>Indicates if the content is expected to be displayed inline.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.CONTENT_ENCODING.html" title="http::header::CONTENT_ENCODING constant">CONTENT_ENCODING</a></td><td class="docblock-short"><p>Used to compress the media-type.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.CONTENT_LANGUAGE.html" title="http::header::CONTENT_LANGUAGE constant">CONTENT_LANGUAGE</a></td><td class="docblock-short"><p>Used to describe the languages intended for the audience.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.CONTENT_LENGTH.html" title="http::header::CONTENT_LENGTH constant">CONTENT_LENGTH</a></td><td class="docblock-short"><p>Indicates the size fo the entity-body.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.CONTENT_LOCATION.html" title="http::header::CONTENT_LOCATION constant">CONTENT_LOCATION</a></td><td class="docblock-short"><p>Indicates an alternate location for the returned data.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.CONTENT_RANGE.html" title="http::header::CONTENT_RANGE constant">CONTENT_RANGE</a></td><td class="docblock-short"><p>Indicates where in a full body message a partial message belongs.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.CONTENT_SECURITY_POLICY.html" title="http::header::CONTENT_SECURITY_POLICY constant">CONTENT_SECURITY_POLICY</a></td><td class="docblock-short"><p>Allows controlling resources the user agent is allowed to load for a
|
||||
given page.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.CONTENT_SECURITY_POLICY_REPORT_ONLY.html" title="http::header::CONTENT_SECURITY_POLICY_REPORT_ONLY constant">CONTENT_SECURITY_POLICY_REPORT_ONLY</a></td><td class="docblock-short"><p>Allows experimenting with policies by monitoring their effects.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.CONTENT_TYPE.html" title="http::header::CONTENT_TYPE constant">CONTENT_TYPE</a></td><td class="docblock-short"><p>Used to indicate the media type of the resource.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.COOKIE.html" title="http::header::COOKIE constant">COOKIE</a></td><td class="docblock-short"><p>Contains stored HTTP cookies previously sent by the server with the
|
||||
Set-Cookie header.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.DATE.html" title="http::header::DATE constant">DATE</a></td><td class="docblock-short"><p>Contains the date and time at which the message was originated.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.DNT.html" title="http::header::DNT constant">DNT</a></td><td class="docblock-short"><p>Indicates the client’s tracking preference.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.ETAG.html" title="http::header::ETAG constant">ETAG</a></td><td class="docblock-short"><p>Identifier for a specific version of a resource.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.EXPECT.html" title="http::header::EXPECT constant">EXPECT</a></td><td class="docblock-short"><p>Indicates expectations that need to be fulfilled by the server in order
|
||||
to properly handle the request.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.EXPIRES.html" title="http::header::EXPIRES constant">EXPIRES</a></td><td class="docblock-short"><p>Contains the date/time after which the response is considered stale.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.FORWARDED.html" title="http::header::FORWARDED constant">FORWARDED</a></td><td class="docblock-short"><p>Contains information from the client-facing side of proxy servers that
|
||||
is altered or lost when a proxy is involved in the path of the request.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.FROM.html" title="http::header::FROM constant">FROM</a></td><td class="docblock-short"><p>Contains an Internet email address for a human user who controls the
|
||||
requesting user agent.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.HOST.html" title="http::header::HOST constant">HOST</a></td><td class="docblock-short"><p>Specifies the domain name of the server and (optionally) the TCP port
|
||||
number on which the server is listening.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.IF_MATCH.html" title="http::header::IF_MATCH constant">IF_MATCH</a></td><td class="docblock-short"><p>Makes a request conditional based on the E-Tag.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.IF_MODIFIED_SINCE.html" title="http::header::IF_MODIFIED_SINCE constant">IF_MODIFIED_SINCE</a></td><td class="docblock-short"><p>Makes a request conditional based on the modification date.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.IF_NONE_MATCH.html" title="http::header::IF_NONE_MATCH constant">IF_NONE_MATCH</a></td><td class="docblock-short"><p>Makes a request conditional based on the E-Tag.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.IF_RANGE.html" title="http::header::IF_RANGE constant">IF_RANGE</a></td><td class="docblock-short"><p>Makes a request conditional based on range.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.IF_UNMODIFIED_SINCE.html" title="http::header::IF_UNMODIFIED_SINCE constant">IF_UNMODIFIED_SINCE</a></td><td class="docblock-short"><p>Makes the request conditional based on the last modification date.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.LAST_MODIFIED.html" title="http::header::LAST_MODIFIED constant">LAST_MODIFIED</a></td><td class="docblock-short"><p>Content-Types that are acceptable for the response.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.LINK.html" title="http::header::LINK constant">LINK</a></td><td class="docblock-short"><p>Allows the server to point an interested client to another resource
|
||||
containing metadata about the requested resource.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.LOCATION.html" title="http::header::LOCATION constant">LOCATION</a></td><td class="docblock-short"><p>Indicates the URL to redirect a page to.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.MAX_FORWARDS.html" title="http::header::MAX_FORWARDS constant">MAX_FORWARDS</a></td><td class="docblock-short"><p>Indicates the max number of intermediaries the request should be sent
|
||||
through.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.ORIGIN.html" title="http::header::ORIGIN constant">ORIGIN</a></td><td class="docblock-short"><p>Indicates where a fetch originates from.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.PRAGMA.html" title="http::header::PRAGMA constant">PRAGMA</a></td><td class="docblock-short"><p>HTTP/1.0 header usually used for backwards compatibility.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.PROXY_AUTHENTICATE.html" title="http::header::PROXY_AUTHENTICATE constant">PROXY_AUTHENTICATE</a></td><td class="docblock-short"><p>Defines the authentication method that should be used to gain access to
|
||||
a proxy.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.PROXY_AUTHORIZATION.html" title="http::header::PROXY_AUTHORIZATION constant">PROXY_AUTHORIZATION</a></td><td class="docblock-short"><p>Contains the credentials to authenticate a user agent to a proxy server.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.PUBLIC_KEY_PINS.html" title="http::header::PUBLIC_KEY_PINS constant">PUBLIC_KEY_PINS</a></td><td class="docblock-short"><p>Associates a specific cryptographic public key with a certain server.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.PUBLIC_KEY_PINS_REPORT_ONLY.html" title="http::header::PUBLIC_KEY_PINS_REPORT_ONLY constant">PUBLIC_KEY_PINS_REPORT_ONLY</a></td><td class="docblock-short"><p>Sends reports of pinning violation to the report-uri specified in the
|
||||
header.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.RANGE.html" title="http::header::RANGE constant">RANGE</a></td><td class="docblock-short"><p>Indicates the part of a document that the server should return.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.REFERER.html" title="http::header::REFERER constant">REFERER</a></td><td class="docblock-short"><p>Contains the address of the previous web page from which a link to the
|
||||
currently requested page was followed.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.REFERRER_POLICY.html" title="http::header::REFERRER_POLICY constant">REFERRER_POLICY</a></td><td class="docblock-short"><p>Governs which referrer information should be included with requests
|
||||
made.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.REFRESH.html" title="http::header::REFRESH constant">REFRESH</a></td><td class="docblock-short"><p>Informs the web browser that the current page or frame should be
|
||||
refreshed.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.RETRY_AFTER.html" title="http::header::RETRY_AFTER constant">RETRY_AFTER</a></td><td class="docblock-short"><p>The Retry-After response HTTP header indicates how long the user agent
|
||||
should wait before making a follow-up request. There are two main cases
|
||||
this header is used:</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.SEC_WEBSOCKET_ACCEPT.html" title="http::header::SEC_WEBSOCKET_ACCEPT constant">SEC_WEBSOCKET_ACCEPT</a></td><td class="docblock-short"><p>The |Sec-WebSocket-Accept| header field is used in the WebSocket
|
||||
opening handshake. It is sent from the server to the client to
|
||||
confirm that the server is willing to initiate the WebSocket
|
||||
connection.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.SEC_WEBSOCKET_EXTENSIONS.html" title="http::header::SEC_WEBSOCKET_EXTENSIONS constant">SEC_WEBSOCKET_EXTENSIONS</a></td><td class="docblock-short"><p>The |Sec-WebSocket-Extensions| header field is used in the WebSocket
|
||||
opening handshake. It is initially sent from the client to the
|
||||
server, and then subsequently sent from the server to the client, to
|
||||
agree on a set of protocol-level extensions to use for the duration
|
||||
of the connection.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.SEC_WEBSOCKET_KEY.html" title="http::header::SEC_WEBSOCKET_KEY constant">SEC_WEBSOCKET_KEY</a></td><td class="docblock-short"><p>The |Sec-WebSocket-Key| header field is used in the WebSocket opening
|
||||
handshake. It is sent from the client to the server to provide part
|
||||
of the information used by the server to prove that it received a
|
||||
valid WebSocket opening handshake. This helps ensure that the server
|
||||
does not accept connections from non-WebSocket clients (e.g., HTTP
|
||||
clients) that are being abused to send data to unsuspecting WebSocket
|
||||
servers.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.SEC_WEBSOCKET_PROTOCOL.html" title="http::header::SEC_WEBSOCKET_PROTOCOL constant">SEC_WEBSOCKET_PROTOCOL</a></td><td class="docblock-short"><p>The |Sec-WebSocket-Protocol| header field is used in the WebSocket
|
||||
opening handshake. It is sent from the client to the server and back
|
||||
from the server to the client to confirm the subprotocol of the
|
||||
connection. This enables scripts to both select a subprotocol and be
|
||||
sure that the server agreed to serve that subprotocol.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.SEC_WEBSOCKET_VERSION.html" title="http::header::SEC_WEBSOCKET_VERSION constant">SEC_WEBSOCKET_VERSION</a></td><td class="docblock-short"><p>The |Sec-WebSocket-Version| header field is used in the WebSocket
|
||||
opening handshake. It is sent from the client to the server to
|
||||
indicate the protocol version of the connection. This enables
|
||||
servers to correctly interpret the opening handshake and subsequent
|
||||
data being sent from the data, and close the connection if the server
|
||||
cannot interpret that data in a safe manner.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.SERVER.html" title="http::header::SERVER constant">SERVER</a></td><td class="docblock-short"><p>Contains information about the software used by the origin server to
|
||||
handle the request.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.SET_COOKIE.html" title="http::header::SET_COOKIE constant">SET_COOKIE</a></td><td class="docblock-short"><p>Used to send cookies from the server to the user agent.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.STRICT_TRANSPORT_SECURITY.html" title="http::header::STRICT_TRANSPORT_SECURITY constant">STRICT_TRANSPORT_SECURITY</a></td><td class="docblock-short"><p>Tells the client to communicate with HTTPS instead of using HTTP.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.TE.html" title="http::header::TE constant">TE</a></td><td class="docblock-short"><p>Informs the server of transfer encodings willing to be accepted as part
|
||||
of the response.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.TRAILER.html" title="http::header::TRAILER constant">TRAILER</a></td><td class="docblock-short"><p>Allows the sender to include additional fields at the end of chunked
|
||||
messages.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.TRANSFER_ENCODING.html" title="http::header::TRANSFER_ENCODING constant">TRANSFER_ENCODING</a></td><td class="docblock-short"><p>Specifies the form of encoding used to safely transfer the entity to the
|
||||
client.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.UPGRADE.html" title="http::header::UPGRADE constant">UPGRADE</a></td><td class="docblock-short"><p>Used as part of the exchange to upgrade the protocol.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.UPGRADE_INSECURE_REQUESTS.html" title="http::header::UPGRADE_INSECURE_REQUESTS constant">UPGRADE_INSECURE_REQUESTS</a></td><td class="docblock-short"><p>Sends a signal to the server expressing the client’s preference for an
|
||||
encrypted and authenticated response.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.USER_AGENT.html" title="http::header::USER_AGENT constant">USER_AGENT</a></td><td class="docblock-short"><p>Contains a string that allows identifying the requesting client’s
|
||||
software.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.VARY.html" title="http::header::VARY constant">VARY</a></td><td class="docblock-short"><p>Determines how to match future requests with cached responses.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.VIA.html" title="http::header::VIA constant">VIA</a></td><td class="docblock-short"><p>Added by proxies to track routing.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.WARNING.html" title="http::header::WARNING constant">WARNING</a></td><td class="docblock-short"><p>General HTTP header contains information about possible problems with
|
||||
the status of the message.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.WWW_AUTHENTICATE.html" title="http::header::WWW_AUTHENTICATE constant">WWW_AUTHENTICATE</a></td><td class="docblock-short"><p>Defines the authentication method that should be used to gain access to
|
||||
a resource.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.X_CONTENT_TYPE_OPTIONS.html" title="http::header::X_CONTENT_TYPE_OPTIONS constant">X_CONTENT_TYPE_OPTIONS</a></td><td class="docblock-short"><p>Marker used by the server to indicate that the MIME types advertised in
|
||||
the <code>content-type</code> headers should not be changed and be followed.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.X_DNS_PREFETCH_CONTROL.html" title="http::header::X_DNS_PREFETCH_CONTROL constant">X_DNS_PREFETCH_CONTROL</a></td><td class="docblock-short"><p>Controls DNS prefetching.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.X_FRAME_OPTIONS.html" title="http::header::X_FRAME_OPTIONS constant">X_FRAME_OPTIONS</a></td><td class="docblock-short"><p>Indicates whether or not a browser should be allowed to render a page in
|
||||
a frame.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="constant" href="constant.X_XSS_PROTECTION.html" title="http::header::X_XSS_PROTECTION constant">X_XSS_PROTECTION</a></td><td class="docblock-short"><p>Stop pages from loading when an XSS attack is detected.</p>
|
||||
</td></tr></table><h2 id="traits" class="section-header"><a href="#traits">Traits</a></h2>
|
||||
<table><tr class="module-item"><td><a class="trait" href="trait.AsHeaderName.html" title="http::header::AsHeaderName trait">AsHeaderName</a></td><td class="docblock-short"><p>A marker trait used to identify values that can be used as search keys
|
||||
to a <code>HeaderMap</code>.</p>
|
||||
</td></tr><tr class="module-item"><td><a class="trait" href="trait.IntoHeaderName.html" title="http::header::IntoHeaderName trait">IntoHeaderName</a></td><td class="docblock-short"><p>A marker trait used to identify values that can be used as insert keys
|
||||
to a <code>HeaderMap</code>.</p>
|
||||
</td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="http"></div>
|
||||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../http/header/trait.AsHeaderName.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../http/header/trait.AsHeaderName.html">../../../../http/header/trait.AsHeaderName.html</a>...</p>
|
||||
<script>location.replace("../../../../http/header/trait.AsHeaderName.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../http/header/enum.Entry.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../http/header/enum.Entry.html">../../../http/header/enum.Entry.html</a>...</p>
|
||||
<script>location.replace("../../../http/header/enum.Entry.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../../http/header/trait.IntoHeaderName.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../../http/header/trait.IntoHeaderName.html">../../../../http/header/trait.IntoHeaderName.html</a>...</p>
|
||||
<script>location.replace("../../../../http/header/trait.IntoHeaderName.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../http/header/struct.Drain.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../http/header/struct.Drain.html">../../../http/header/struct.Drain.html</a>...</p>
|
||||
<script>location.replace("../../../http/header/struct.Drain.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../http/header/struct.GetAll.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../http/header/struct.GetAll.html">../../../http/header/struct.GetAll.html</a>...</p>
|
||||
<script>location.replace("../../../http/header/struct.GetAll.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../http/header/struct.HeaderMap.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../http/header/struct.HeaderMap.html">../../../http/header/struct.HeaderMap.html</a>...</p>
|
||||
<script>location.replace("../../../http/header/struct.HeaderMap.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../http/header/struct.IntoIter.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../http/header/struct.IntoIter.html">../../../http/header/struct.IntoIter.html</a>...</p>
|
||||
<script>location.replace("../../../http/header/struct.IntoIter.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../http/header/struct.Iter.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../http/header/struct.Iter.html">../../../http/header/struct.Iter.html</a>...</p>
|
||||
<script>location.replace("../../../http/header/struct.Iter.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../http/header/struct.IterMut.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../http/header/struct.IterMut.html">../../../http/header/struct.IterMut.html</a>...</p>
|
||||
<script>location.replace("../../../http/header/struct.IterMut.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../http/header/struct.Keys.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../http/header/struct.Keys.html">../../../http/header/struct.Keys.html</a>...</p>
|
||||
<script>location.replace("../../../http/header/struct.Keys.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../http/header/struct.OccupiedEntry.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../http/header/struct.OccupiedEntry.html">../../../http/header/struct.OccupiedEntry.html</a>...</p>
|
||||
<script>location.replace("../../../http/header/struct.OccupiedEntry.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../http/header/struct.VacantEntry.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../http/header/struct.VacantEntry.html">../../../http/header/struct.VacantEntry.html</a>...</p>
|
||||
<script>location.replace("../../../http/header/struct.VacantEntry.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../http/header/struct.ValueDrain.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../http/header/struct.ValueDrain.html">../../../http/header/struct.ValueDrain.html</a>...</p>
|
||||
<script>location.replace("../../../http/header/struct.ValueDrain.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../http/header/struct.ValueIter.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../http/header/struct.ValueIter.html">../../../http/header/struct.ValueIter.html</a>...</p>
|
||||
<script>location.replace("../../../http/header/struct.ValueIter.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=../../../http/header/struct.ValueIterMut.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="../../../http/header/struct.ValueIterMut.html">../../../http/header/struct.ValueIterMut.html</a>...</p>
|
||||
<script>location.replace("../../../http/header/struct.ValueIterMut.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user