mirror of
https://github.com/actix/actix-extras.git
synced 2025-02-22 18:33:18 +01:00
Deploying to gh-pages from @ 8a31f3020e48e4a691524637cdb71496294b5ec8 🚀
This commit is contained in:
parent
715278cbd8
commit
51e6fd3d16
File diff suppressed because one or more lines are too long
@ -5,8 +5,8 @@ builder can be used as an argument for Actix Web’s <code>App::wrap()</code>, <
|
|||||||
<p>This CORS middleware automatically handles <code>OPTIONS</code> preflight requests.</p>
|
<p>This CORS middleware automatically handles <code>OPTIONS</code> preflight requests.</p>
|
||||||
<h2 id="crate-features"><a href="#crate-features">Crate Features</a></h2>
|
<h2 id="crate-features"><a href="#crate-features">Crate Features</a></h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li><code>draft-local-network-access</code>: ⚠️ Unstable. Adds opt-in support for the <a href="https://wicg.github.io/local-network-access">Local Network Access</a>
|
<li><code>draft-private-network-access</code>: ⚠️ Unstable. Adds opt-in support for the <a href="https://wicg.github.io/private-network-access">Private Network
|
||||||
spec extensions. This feature is unstable since it will follow any breaking changes in the
|
Access</a> spec extensions. This feature is unstable since it will follow breaking changes in the
|
||||||
draft spec until it is finalized.</li>
|
draft spec until it is finalized.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h2 id="example"><a href="#example">Example</a></h2>
|
<h2 id="example"><a href="#example">Example</a></h2>
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
|||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Documentation for Rustdoc"><title>Rustdoc help</title><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="./static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="./static.files/rustdoc-63a85fc7cf22dee2.css" id="mainThemeStyle"><div id="rustdoc-vars" data-root-path="./" data-static-root-path="./static.files/" data-current-crate="actix_web_httpauth" data-themes="" data-resource-suffix="" data-rustdoc-version="1.70.0-nightly (af06dce64 2023-04-08)" data-search-js="search-bc5a112813b5d712.js" data-settings-js="settings-298e1ea74db45b39.js" data-settings-css="settings-0bcba95ff279c1db.css" data-theme-light-css="light-db279b6232be9c13.css" data-theme-dark-css="dark-cf923f49f397b216.css" data-theme-ayu-css="ayu-be46fdc453a55015.css" ></div><script src="./static.files/storage-62ce34ea385b278a.js"></script><script defer src="./static.files/main-1159a395118aa44e.js"></script><noscript><link rel="stylesheet" media="(prefers-color-scheme:light)" href="./static.files/light-db279b6232be9c13.css"><link rel="stylesheet" media="(prefers-color-scheme:dark)" href="./static.files/dark-cf923f49f397b216.css"><link rel="stylesheet" href="./static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="./static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="./static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="./static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button><a class="logo-container" href="./actix_web_httpauth/index.html"><img class="rust-logo" src="./static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="./actix_web_httpauth/index.html"><img class="rust-logo" src="./static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2 class="location">Help</h2><div class="sidebar-elems"></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="./help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="./settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="./static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Rustdoc help</h1><span class="out-of-band"><a id="back" href="javascript:void(0)" onclick="history.back();">Back</a></span></div><noscript><section><p>You need to enable Javascript to use keyboard commands or search.</p><p>For more information, browse the <a href="https://doc.rust-lang.org/rustdoc/">rustdoc handbook</a>.</p></section></noscript></section></div></main></body></html>
|
<!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="Documentation for Rustdoc"><title>Rustdoc help</title><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="./static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="./static.files/rustdoc-63a85fc7cf22dee2.css" id="mainThemeStyle"><div id="rustdoc-vars" data-root-path="./" data-static-root-path="./static.files/" data-current-crate="actix_cors" data-themes="" data-resource-suffix="" data-rustdoc-version="1.70.0-nightly (af06dce64 2023-04-08)" data-search-js="search-bc5a112813b5d712.js" data-settings-js="settings-298e1ea74db45b39.js" data-settings-css="settings-0bcba95ff279c1db.css" data-theme-light-css="light-db279b6232be9c13.css" data-theme-dark-css="dark-cf923f49f397b216.css" data-theme-ayu-css="ayu-be46fdc453a55015.css" ></div><script src="./static.files/storage-62ce34ea385b278a.js"></script><script defer src="./static.files/main-1159a395118aa44e.js"></script><noscript><link rel="stylesheet" media="(prefers-color-scheme:light)" href="./static.files/light-db279b6232be9c13.css"><link rel="stylesheet" media="(prefers-color-scheme:dark)" href="./static.files/dark-cf923f49f397b216.css"><link rel="stylesheet" href="./static.files/noscript-13285aec31fa243e.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button><a class="logo-container" href="./actix_cors/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="./actix_cors/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2 class="location">Help</h2><div class="sidebar-elems"></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="./help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="./settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="./static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Rustdoc help</h1><span class="out-of-band"><a id="back" href="javascript:void(0)" onclick="history.back();">Back</a></span></div><noscript><section><p>You need to enable Javascript to use keyboard commands or search.</p><p>For more information, browse the <a href="https://doc.rust-lang.org/rustdoc/">rustdoc handbook</a>.</p></section></noscript></section></div></main></body></html>
|
@ -1,5 +1,5 @@
|
|||||||
(function() {var implementors = {
|
(function() {var implementors = {
|
||||||
"actix_cors":[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html\" title=\"trait core::fmt::Debug\">Debug</a> for <a class=\"struct\" href=\"actix_cors/struct.Cors.html\" title=\"struct actix_cors::Cors\">Cors</a>"],["impl <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=\"actix_cors/enum.CorsError.html\" title=\"enum actix_cors::CorsError\">CorsError</a>"]],
|
"actix_cors":[["impl <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=\"actix_cors/enum.CorsError.html\" title=\"enum actix_cors::CorsError\">CorsError</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html\" title=\"trait core::fmt::Debug\">Debug</a> for <a class=\"struct\" href=\"actix_cors/struct.Cors.html\" title=\"struct actix_cors::Cors\">Cors</a>"]],
|
||||||
"actix_identity":[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html\" title=\"trait core::fmt::Debug\">Debug</a> for <a class=\"struct\" href=\"actix_identity/error/struct.LostIdentityError.html\" title=\"struct actix_identity::error::LostIdentityError\">LostIdentityError</a>"],["impl <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=\"actix_identity/config/enum.LogoutBehaviour.html\" title=\"enum actix_identity::config::LogoutBehaviour\">LogoutBehaviour</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html\" title=\"trait core::fmt::Debug\">Debug</a> for <a class=\"struct\" href=\"actix_identity/error/struct.MissingIdentityError.html\" title=\"struct actix_identity::error::MissingIdentityError\">MissingIdentityError</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html\" title=\"trait core::fmt::Debug\">Debug</a> for <a class=\"struct\" href=\"actix_identity/error/struct.SessionExpiryError.html\" title=\"struct actix_identity::error::SessionExpiryError\">SessionExpiryError</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html\" title=\"trait core::fmt::Debug\">Debug</a> for <a class=\"struct\" href=\"actix_identity/error/struct.LoginError.html\" title=\"struct actix_identity::error::LoginError\">LoginError</a>"],["impl <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=\"actix_identity/error/enum.GetIdentityError.html\" title=\"enum actix_identity::error::GetIdentityError\">GetIdentityError</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html\" title=\"trait core::fmt::Debug\">Debug</a> for <a class=\"struct\" href=\"actix_identity/config/struct.IdentityMiddlewareBuilder.html\" title=\"struct actix_identity::config::IdentityMiddlewareBuilder\">IdentityMiddlewareBuilder</a>"]],
|
"actix_identity":[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html\" title=\"trait core::fmt::Debug\">Debug</a> for <a class=\"struct\" href=\"actix_identity/error/struct.LostIdentityError.html\" title=\"struct actix_identity::error::LostIdentityError\">LostIdentityError</a>"],["impl <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=\"actix_identity/config/enum.LogoutBehaviour.html\" title=\"enum actix_identity::config::LogoutBehaviour\">LogoutBehaviour</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html\" title=\"trait core::fmt::Debug\">Debug</a> for <a class=\"struct\" href=\"actix_identity/error/struct.MissingIdentityError.html\" title=\"struct actix_identity::error::MissingIdentityError\">MissingIdentityError</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html\" title=\"trait core::fmt::Debug\">Debug</a> for <a class=\"struct\" href=\"actix_identity/error/struct.SessionExpiryError.html\" title=\"struct actix_identity::error::SessionExpiryError\">SessionExpiryError</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html\" title=\"trait core::fmt::Debug\">Debug</a> for <a class=\"struct\" href=\"actix_identity/error/struct.LoginError.html\" title=\"struct actix_identity::error::LoginError\">LoginError</a>"],["impl <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=\"actix_identity/error/enum.GetIdentityError.html\" title=\"enum actix_identity::error::GetIdentityError\">GetIdentityError</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html\" title=\"trait core::fmt::Debug\">Debug</a> for <a class=\"struct\" href=\"actix_identity/config/struct.IdentityMiddlewareBuilder.html\" title=\"struct actix_identity::config::IdentityMiddlewareBuilder\">IdentityMiddlewareBuilder</a>"]],
|
||||||
"actix_limitation":[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html\" title=\"trait core::fmt::Debug\">Debug</a> for <a class=\"struct\" href=\"actix_limitation/struct.RateLimiter.html\" title=\"struct actix_limitation::RateLimiter\">RateLimiter</a>"],["impl <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=\"actix_limitation/enum.Error.html\" title=\"enum actix_limitation::Error\">Error</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html\" title=\"trait core::fmt::Debug\">Debug</a> for <a class=\"struct\" href=\"actix_limitation/struct.Builder.html\" title=\"struct actix_limitation::Builder\">Builder</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html\" title=\"trait core::fmt::Debug\">Debug</a> for <a class=\"struct\" href=\"actix_limitation/struct.Limiter.html\" title=\"struct actix_limitation::Limiter\">Limiter</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html\" title=\"trait core::fmt::Debug\">Debug</a> for <a class=\"struct\" href=\"actix_limitation/struct.Status.html\" title=\"struct actix_limitation::Status\">Status</a>"]],
|
"actix_limitation":[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html\" title=\"trait core::fmt::Debug\">Debug</a> for <a class=\"struct\" href=\"actix_limitation/struct.RateLimiter.html\" title=\"struct actix_limitation::RateLimiter\">RateLimiter</a>"],["impl <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=\"actix_limitation/enum.Error.html\" title=\"enum actix_limitation::Error\">Error</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html\" title=\"trait core::fmt::Debug\">Debug</a> for <a class=\"struct\" href=\"actix_limitation/struct.Builder.html\" title=\"struct actix_limitation::Builder\">Builder</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html\" title=\"trait core::fmt::Debug\">Debug</a> for <a class=\"struct\" href=\"actix_limitation/struct.Limiter.html\" title=\"struct actix_limitation::Limiter\">Limiter</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html\" title=\"trait core::fmt::Debug\">Debug</a> for <a class=\"struct\" href=\"actix_limitation/struct.Status.html\" title=\"struct actix_limitation::Status\">Status</a>"]],
|
||||||
"actix_protobuf":[["impl <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=\"actix_protobuf/enum.ProtoBufPayloadError.html\" title=\"enum actix_protobuf::ProtoBufPayloadError\">ProtoBufPayloadError</a>"],["impl<T> <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html\" title=\"trait core::fmt::Debug\">Debug</a> for <a class=\"struct\" href=\"actix_protobuf/struct.ProtoBuf.html\" title=\"struct actix_protobuf::ProtoBuf\">ProtoBuf</a><T><span class=\"where fmt-newline\">where\n T: <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html\" title=\"trait core::fmt::Debug\">Debug</a> + <a class=\"trait\" href=\"https://docs.rs/prost/0.11.8/prost/message/trait.Message.html\" title=\"trait prost::message::Message\">Message</a>,</span>"]],
|
"actix_protobuf":[["impl <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=\"actix_protobuf/enum.ProtoBufPayloadError.html\" title=\"enum actix_protobuf::ProtoBufPayloadError\">ProtoBufPayloadError</a>"],["impl<T> <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html\" title=\"trait core::fmt::Debug\">Debug</a> for <a class=\"struct\" href=\"actix_protobuf/struct.ProtoBuf.html\" title=\"struct actix_protobuf::ProtoBuf\">ProtoBuf</a><T><span class=\"where fmt-newline\">where\n T: <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html\" title=\"trait core::fmt::Debug\">Debug</a> + <a class=\"trait\" href=\"https://docs.rs/prost/0.11.8/prost/message/trait.Message.html\" title=\"trait prost::message::Message\">Message</a>,</span>"]],
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
|||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Settings of Rustdoc"><title>Rustdoc settings</title><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="./static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="./static.files/rustdoc-63a85fc7cf22dee2.css" id="mainThemeStyle"><div id="rustdoc-vars" data-root-path="./" data-static-root-path="./static.files/" data-current-crate="actix_web_httpauth" data-themes="" data-resource-suffix="" data-rustdoc-version="1.70.0-nightly (af06dce64 2023-04-08)" data-search-js="search-bc5a112813b5d712.js" data-settings-js="settings-298e1ea74db45b39.js" data-settings-css="settings-0bcba95ff279c1db.css" data-theme-light-css="light-db279b6232be9c13.css" data-theme-dark-css="dark-cf923f49f397b216.css" data-theme-ayu-css="ayu-be46fdc453a55015.css" ></div><script src="./static.files/storage-62ce34ea385b278a.js"></script><script defer src="./static.files/main-1159a395118aa44e.js"></script><noscript><link rel="stylesheet" media="(prefers-color-scheme:light)" href="./static.files/light-db279b6232be9c13.css"><link rel="stylesheet" media="(prefers-color-scheme:dark)" href="./static.files/dark-cf923f49f397b216.css"><link rel="stylesheet" href="./static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="./static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="./static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="./static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button><a class="logo-container" href="./actix_web_httpauth/index.html"><img class="rust-logo" src="./static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="./actix_web_httpauth/index.html"><img class="rust-logo" src="./static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2 class="location">Settings</h2><div class="sidebar-elems"></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="./help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="./settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="./static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Rustdoc settings</h1><span class="out-of-band"><a id="back" href="javascript:void(0)" onclick="history.back();">Back</a></span></div><noscript><section>You need to enable Javascript be able to update your settings.</section></noscript><link rel="stylesheet" href="./static.files/settings-0bcba95ff279c1db.css"><script defer src="./static.files/settings-298e1ea74db45b39.js"></script><link rel="preload" href="./static.files/light-db279b6232be9c13.css" as="style"><link rel="preload" href="./static.files/dark-cf923f49f397b216.css" as="style"><link rel="preload" href="./static.files/ayu-be46fdc453a55015.css" as="style"></section></div></main></body></html>
|
<!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="Settings of Rustdoc"><title>Rustdoc settings</title><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="./static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="./static.files/rustdoc-63a85fc7cf22dee2.css" id="mainThemeStyle"><div id="rustdoc-vars" data-root-path="./" data-static-root-path="./static.files/" data-current-crate="actix_cors" data-themes="" data-resource-suffix="" data-rustdoc-version="1.70.0-nightly (af06dce64 2023-04-08)" data-search-js="search-bc5a112813b5d712.js" data-settings-js="settings-298e1ea74db45b39.js" data-settings-css="settings-0bcba95ff279c1db.css" data-theme-light-css="light-db279b6232be9c13.css" data-theme-dark-css="dark-cf923f49f397b216.css" data-theme-ayu-css="ayu-be46fdc453a55015.css" ></div><script src="./static.files/storage-62ce34ea385b278a.js"></script><script defer src="./static.files/main-1159a395118aa44e.js"></script><noscript><link rel="stylesheet" media="(prefers-color-scheme:light)" href="./static.files/light-db279b6232be9c13.css"><link rel="stylesheet" media="(prefers-color-scheme:dark)" href="./static.files/dark-cf923f49f397b216.css"><link rel="stylesheet" href="./static.files/noscript-13285aec31fa243e.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button><a class="logo-container" href="./actix_cors/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="./actix_cors/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2 class="location">Settings</h2><div class="sidebar-elems"></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="./help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="./settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="./static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Rustdoc settings</h1><span class="out-of-band"><a id="back" href="javascript:void(0)" onclick="history.back();">Back</a></span></div><noscript><section>You need to enable Javascript be able to update your settings.</section></noscript><link rel="stylesheet" href="./static.files/settings-0bcba95ff279c1db.css"><script defer src="./static.files/settings-298e1ea74db45b39.js"></script><link rel="preload" href="./static.files/light-db279b6232be9c13.css" as="style"><link rel="preload" href="./static.files/dark-cf923f49f397b216.css" as="style"><link rel="preload" href="./static.files/ayu-be46fdc453a55015.css" as="style"></section></div></main></body></html>
|
@ -785,8 +785,8 @@
|
|||||||
preflight: <span class="bool-val">true</span>,
|
preflight: <span class="bool-val">true</span>,
|
||||||
send_wildcard: <span class="bool-val">false</span>,
|
send_wildcard: <span class="bool-val">false</span>,
|
||||||
supports_credentials: <span class="bool-val">true</span>,
|
supports_credentials: <span class="bool-val">true</span>,
|
||||||
<span class="attr">#[cfg(feature = <span class="string">"draft-local-network-access"</span>)]
|
<span class="attr">#[cfg(feature = <span class="string">"draft-private-network-access"</span>)]
|
||||||
</span>allow_local_network_access: <span class="bool-val">false</span>,
|
</span>allow_private_network_access: <span class="bool-val">false</span>,
|
||||||
vary_header: <span class="bool-val">true</span>,
|
vary_header: <span class="bool-val">true</span>,
|
||||||
block_on_origin_mismatch: <span class="bool-val">true</span>,
|
block_on_origin_mismatch: <span class="bool-val">true</span>,
|
||||||
};
|
};
|
||||||
@ -1106,18 +1106,18 @@
|
|||||||
|
|
||||||
<span class="doccomment">/// Allow private network access.
|
<span class="doccomment">/// Allow private network access.
|
||||||
///
|
///
|
||||||
/// If true, injects the `Access-Control-Allow-Local-Network: true` header in responses if the
|
/// If true, injects the `Access-Control-Allow-Private-Network: true` header in responses if the
|
||||||
/// request contained the `Access-Control-Request-Local-Network: true` header.
|
/// request contained the `Access-Control-Request-Private-Network: true` header.
|
||||||
///
|
///
|
||||||
/// For more information on this behavior, see the draft [Local Network Access] spec.
|
/// For more information on this behavior, see the draft [Private Network Access] spec.
|
||||||
///
|
///
|
||||||
/// Defaults to `false`.
|
/// Defaults to `false`.
|
||||||
///
|
///
|
||||||
/// [Private Network Access]: https://wicg.github.io/local-network-access
|
/// [Private Network Access]: https://wicg.github.io/private-network-access
|
||||||
</span><span class="attr">#[cfg(feature = <span class="string">"draft-local-network-access"</span>)]
|
</span><span class="attr">#[cfg(feature = <span class="string">"draft-private-network-access"</span>)]
|
||||||
</span><span class="kw">pub fn </span>allow_local_network_access(<span class="kw-2">mut </span><span class="self">self</span>) -> Cors {
|
</span><span class="kw">pub fn </span>allow_private_network_access(<span class="kw-2">mut </span><span class="self">self</span>) -> Cors {
|
||||||
<span class="kw">if let </span><span class="prelude-val">Some</span>(cors) = cors(<span class="kw-2">&mut </span><span class="self">self</span>.inner, <span class="kw-2">&</span><span class="self">self</span>.error) {
|
<span class="kw">if let </span><span class="prelude-val">Some</span>(cors) = cors(<span class="kw-2">&mut </span><span class="self">self</span>.inner, <span class="kw-2">&</span><span class="self">self</span>.error) {
|
||||||
cors.allow_local_network_access = <span class="bool-val">true</span>;
|
cors.allow_private_network_access = <span class="bool-val">true</span>;
|
||||||
}
|
}
|
||||||
|
|
||||||
<span class="self">self
|
<span class="self">self
|
||||||
@ -1197,8 +1197,8 @@
|
|||||||
preflight: <span class="bool-val">true</span>,
|
preflight: <span class="bool-val">true</span>,
|
||||||
send_wildcard: <span class="bool-val">false</span>,
|
send_wildcard: <span class="bool-val">false</span>,
|
||||||
supports_credentials: <span class="bool-val">false</span>,
|
supports_credentials: <span class="bool-val">false</span>,
|
||||||
<span class="attr">#[cfg(feature = <span class="string">"draft-local-network-access"</span>)]
|
<span class="attr">#[cfg(feature = <span class="string">"draft-private-network-access"</span>)]
|
||||||
</span>allow_local_network_access: <span class="bool-val">false</span>,
|
</span>allow_private_network_access: <span class="bool-val">false</span>,
|
||||||
vary_header: <span class="bool-val">true</span>,
|
vary_header: <span class="bool-val">true</span>,
|
||||||
block_on_origin_mismatch: <span class="bool-val">true</span>,
|
block_on_origin_mismatch: <span class="bool-val">true</span>,
|
||||||
};
|
};
|
||||||
|
@ -471,8 +471,8 @@
|
|||||||
<span class="kw">pub</span>(<span class="kw">crate</span>) preflight: bool,
|
<span class="kw">pub</span>(<span class="kw">crate</span>) preflight: bool,
|
||||||
<span class="kw">pub</span>(<span class="kw">crate</span>) send_wildcard: bool,
|
<span class="kw">pub</span>(<span class="kw">crate</span>) send_wildcard: bool,
|
||||||
<span class="kw">pub</span>(<span class="kw">crate</span>) supports_credentials: bool,
|
<span class="kw">pub</span>(<span class="kw">crate</span>) supports_credentials: bool,
|
||||||
<span class="attr">#[cfg(feature = <span class="string">"draft-local-network-access"</span>)]
|
<span class="attr">#[cfg(feature = <span class="string">"draft-private-network-access"</span>)]
|
||||||
</span><span class="kw">pub</span>(<span class="kw">crate</span>) allow_local_network_access: bool,
|
</span><span class="kw">pub</span>(<span class="kw">crate</span>) allow_private_network_access: bool,
|
||||||
<span class="kw">pub</span>(<span class="kw">crate</span>) vary_header: bool,
|
<span class="kw">pub</span>(<span class="kw">crate</span>) vary_header: bool,
|
||||||
<span class="kw">pub</span>(<span class="kw">crate</span>) block_on_origin_mismatch: bool,
|
<span class="kw">pub</span>(<span class="kw">crate</span>) block_on_origin_mismatch: bool,
|
||||||
}
|
}
|
||||||
@ -629,19 +629,19 @@
|
|||||||
val.extend(hdr.as_bytes());
|
val.extend(hdr.as_bytes());
|
||||||
val.extend(<span class="string">b", Origin, Access-Control-Request-Method, Access-Control-Request-Headers"</span>);
|
val.extend(<span class="string">b", Origin, Access-Control-Request-Method, Access-Control-Request-Headers"</span>);
|
||||||
|
|
||||||
<span class="attr">#[cfg(feature = <span class="string">"draft-local-network-access"</span>)]
|
<span class="attr">#[cfg(feature = <span class="string">"draft-private-network-access"</span>)]
|
||||||
</span>val.extend(<span class="string">b", Access-Control-Allow-Local-Network"</span>);
|
</span>val.extend(<span class="string">b", Access-Control-Allow-Private-Network"</span>);
|
||||||
|
|
||||||
val.try_into().unwrap()
|
val.try_into().unwrap()
|
||||||
}
|
}
|
||||||
|
|
||||||
<span class="attr">#[cfg(feature = <span class="string">"draft-local-network-access"</span>)]
|
<span class="attr">#[cfg(feature = <span class="string">"draft-private-network-access"</span>)]
|
||||||
</span><span class="prelude-val">None </span>=> HeaderValue::from_static(
|
</span><span class="prelude-val">None </span>=> HeaderValue::from_static(
|
||||||
<span class="string">"Origin, Access-Control-Request-Method, Access-Control-Request-Headers, \
|
<span class="string">"Origin, Access-Control-Request-Method, Access-Control-Request-Headers, \
|
||||||
Access-Control-Allow-Local-Network"</span>,
|
Access-Control-Allow-Private-Network"</span>,
|
||||||
),
|
),
|
||||||
|
|
||||||
<span class="attr">#[cfg(not(feature = <span class="string">"draft-local-network-access"</span>))]
|
<span class="attr">#[cfg(not(feature = <span class="string">"draft-private-network-access"</span>))]
|
||||||
</span><span class="prelude-val">None </span>=> HeaderValue::from_static(
|
</span><span class="prelude-val">None </span>=> HeaderValue::from_static(
|
||||||
<span class="string">"Origin, Access-Control-Request-Method, Access-Control-Request-Headers"</span>,
|
<span class="string">"Origin, Access-Control-Request-Method, Access-Control-Request-Headers"</span>,
|
||||||
),
|
),
|
||||||
|
@ -75,8 +75,8 @@
|
|||||||
//! This CORS middleware automatically handles `OPTIONS` preflight requests.
|
//! This CORS middleware automatically handles `OPTIONS` preflight requests.
|
||||||
//!
|
//!
|
||||||
//! # Crate Features
|
//! # Crate Features
|
||||||
//! - `draft-local-network-access`: ⚠️ Unstable. Adds opt-in support for the [Local Network Access]
|
//! - `draft-private-network-access`: ⚠️ Unstable. Adds opt-in support for the [Private Network
|
||||||
//! spec extensions. This feature is unstable since it will follow any breaking changes in the
|
//! Access] spec extensions. This feature is unstable since it will follow breaking changes in the
|
||||||
//! draft spec until it is finalized.
|
//! draft spec until it is finalized.
|
||||||
//!
|
//!
|
||||||
//! # Example
|
//! # Example
|
||||||
@ -114,7 +114,7 @@
|
|||||||
//! }
|
//! }
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
//! [Local Network Access]: https://wicg.github.io/local-network-access
|
//! [Private Network Access]: https://wicg.github.io/private-network-access
|
||||||
|
|
||||||
</span><span class="attr">#![forbid(unsafe_code)]
|
</span><span class="attr">#![forbid(unsafe_code)]
|
||||||
#![deny(rust_2018_idioms, nonstandard_style)]
|
#![deny(rust_2018_idioms, nonstandard_style)]
|
||||||
|
@ -393,14 +393,14 @@
|
|||||||
</span>res.insert_header((header::ACCESS_CONTROL_ALLOW_HEADERS, headers.clone()));
|
</span>res.insert_header((header::ACCESS_CONTROL_ALLOW_HEADERS, headers.clone()));
|
||||||
}
|
}
|
||||||
|
|
||||||
<span class="attr">#[cfg(feature = <span class="string">"draft-local-network-access"</span>)]
|
<span class="attr">#[cfg(feature = <span class="string">"draft-private-network-access"</span>)]
|
||||||
</span><span class="kw">if </span>inner.allow_local_network_access
|
</span><span class="kw">if </span>inner.allow_private_network_access
|
||||||
&& req
|
&& req
|
||||||
.headers()
|
.headers()
|
||||||
.contains_key(<span class="string">"access-control-request-local-network"</span>)
|
.contains_key(<span class="string">"access-control-request-private-network"</span>)
|
||||||
{
|
{
|
||||||
res.insert_header((
|
res.insert_header((
|
||||||
header::HeaderName::from_static(<span class="string">"access-control-allow-local-network"</span>),
|
header::HeaderName::from_static(<span class="string">"access-control-allow-private-network"</span>),
|
||||||
HeaderValue::from_static(<span class="string">"true"</span>),
|
HeaderValue::from_static(<span class="string">"true"</span>),
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
@ -473,15 +473,15 @@
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
<span class="attr">#[cfg(feature = <span class="string">"draft-local-network-access"</span>)]
|
<span class="attr">#[cfg(feature = <span class="string">"draft-private-network-access"</span>)]
|
||||||
</span><span class="kw">if </span>inner.allow_local_network_access
|
</span><span class="kw">if </span>inner.allow_private_network_access
|
||||||
&& res
|
&& res
|
||||||
.request()
|
.request()
|
||||||
.headers()
|
.headers()
|
||||||
.contains_key(<span class="string">"access-control-request-local-network"</span>)
|
.contains_key(<span class="string">"access-control-request-private-network"</span>)
|
||||||
{
|
{
|
||||||
res.headers_mut().insert(
|
res.headers_mut().insert(
|
||||||
header::HeaderName::from_static(<span class="string">"access-control-allow-local-network"</span>),
|
header::HeaderName::from_static(<span class="string">"access-control-allow-private-network"</span>),
|
||||||
HeaderValue::from_static(<span class="string">"true"</span>),
|
HeaderValue::from_static(<span class="string">"true"</span>),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user