1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-30 00:14:58 +02:00

Deploying to gh-pages from @ actix/actix-web@26efa64278 🚀

This commit is contained in:
github-merge-queue[bot]
2024-05-27 01:16:31 +00:00
commit a33fe13cd1
1715 changed files with 215638 additions and 0 deletions

View File

@ -0,0 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="List of all items in this crate"><title>List of all items in this crate</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-dd39b87e5fcfba68.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="actix_web_codegen" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (bdbbb6c6a 2024-05-26)" data-channel="nightly" data-search-js="search-d52510db62a78183.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-118b08c4c78b968e.js"></script><script defer src="../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-df360f571f6edeae.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></head><body class="rustdoc mod sys"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../actix_web_codegen/index.html"><img src="https://actix.rs/img/logo.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../actix_web_codegen/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2><a href="../actix_web_codegen/index.html">actix_web_codegen</a><span class="version">4.2.2</span></h2></div><div class="sidebar-elems"><section><ul class="block"><li><a href="#attributes">Attribute Macros</a></li></ul></section></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><h1>List of all items</h1><h3 id="attributes">Attribute Macros</h3><ul class="all-items"><li><a href="attr.connect.html">connect</a></li><li><a href="attr.delete.html">delete</a></li><li><a href="attr.get.html">get</a></li><li><a href="attr.head.html">head</a></li><li><a href="attr.main.html">main</a></li><li><a href="attr.options.html">options</a></li><li><a href="attr.patch.html">patch</a></li><li><a href="attr.post.html">post</a></li><li><a href="attr.put.html">put</a></li><li><a href="attr.route.html">route</a></li><li><a href="attr.routes.html">routes</a></li><li><a href="attr.test.html">test</a></li><li><a href="attr.trace.html">trace</a></li></ul></section></div></main></body></html>

View File

@ -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="Creates route handler with `actix_web::guard::Connect`."><title>connect in actix_web_codegen - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-dd39b87e5fcfba68.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="actix_web_codegen" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (bdbbb6c6a 2024-05-26)" data-channel="nightly" data-search-js="search-d52510db62a78183.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-118b08c4c78b968e.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-df360f571f6edeae.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></head><body class="rustdoc attr"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../actix_web_codegen/index.html"><img src="https://actix.rs/img/logo.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../actix_web_codegen/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2><a href="../actix_web_codegen/index.html">actix_web_codegen</a><span class="version">4.2.2</span></h2></div><div class="sidebar-elems"></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Attribute Macro <a href="index.html">actix_web_codegen</a>::<wbr><a class="attr" href="#">connect</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../src/actix_web_codegen/lib.rs.html#195">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>#[connect]</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates route handler with <code>actix_web::guard::Connect</code>.</p>
<h2 id="syntax"><a class="doc-anchor" href="#syntax">§</a>Syntax</h2><div class="example-wrap"><pre class="language-plain"><code>#[connect(&quot;path&quot;[, attributes])]
</code></pre></div><h2 id="attributes"><a class="doc-anchor" href="#attributes">§</a>Attributes</h2>
<ul>
<li><code>&quot;path&quot;</code>: Raw literal string with path for which to register handler.</li>
<li><code>name = &quot;resource_name&quot;</code>: Specifies resource name for the handler. If not set, the
function name of handler is used.</li>
<li><code>guard = &quot;function_name&quot;</code>: Registers function as guard using <code>actix_web::guard::fn_guard</code>.</li>
<li><code>wrap = &quot;Middleware&quot;</code>: Registers a resource middleware.</li>
</ul>
<h2 id="notes"><a class="doc-anchor" href="#notes">§</a>Notes</h2>
<p>Function name can be specified as any expression that is going to be accessible to the
generate code, e.g <code>my_guard</code> or <code>my_module::my_guard</code>.</p>
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="attr">#[connect(<span class="string">"/"</span>)]
</span><span class="kw">async fn </span>example() -&gt; HttpResponse {
HttpResponse::Ok().finish()
}</code></pre></div>
</div></details></section></div></main></body></html>

View File

@ -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="Creates route handler with `actix_web::guard::Delete`."><title>delete in actix_web_codegen - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-dd39b87e5fcfba68.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="actix_web_codegen" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (bdbbb6c6a 2024-05-26)" data-channel="nightly" data-search-js="search-d52510db62a78183.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-118b08c4c78b968e.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-df360f571f6edeae.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></head><body class="rustdoc attr"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../actix_web_codegen/index.html"><img src="https://actix.rs/img/logo.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../actix_web_codegen/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2><a href="../actix_web_codegen/index.html">actix_web_codegen</a><span class="version">4.2.2</span></h2></div><div class="sidebar-elems"></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Attribute Macro <a href="index.html">actix_web_codegen</a>::<wbr><a class="attr" href="#">delete</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../src/actix_web_codegen/lib.rs.html#193">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>#[delete]</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates route handler with <code>actix_web::guard::Delete</code>.</p>
<h2 id="syntax"><a class="doc-anchor" href="#syntax">§</a>Syntax</h2><div class="example-wrap"><pre class="language-plain"><code>#[delete(&quot;path&quot;[, attributes])]
</code></pre></div><h2 id="attributes"><a class="doc-anchor" href="#attributes">§</a>Attributes</h2>
<ul>
<li><code>&quot;path&quot;</code>: Raw literal string with path for which to register handler.</li>
<li><code>name = &quot;resource_name&quot;</code>: Specifies resource name for the handler. If not set, the
function name of handler is used.</li>
<li><code>guard = &quot;function_name&quot;</code>: Registers function as guard using <code>actix_web::guard::fn_guard</code>.</li>
<li><code>wrap = &quot;Middleware&quot;</code>: Registers a resource middleware.</li>
</ul>
<h2 id="notes"><a class="doc-anchor" href="#notes">§</a>Notes</h2>
<p>Function name can be specified as any expression that is going to be accessible to the
generate code, e.g <code>my_guard</code> or <code>my_module::my_guard</code>.</p>
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="attr">#[delete(<span class="string">"/"</span>)]
</span><span class="kw">async fn </span>example() -&gt; HttpResponse {
HttpResponse::Ok().finish()
}</code></pre></div>
</div></details></section></div></main></body></html>

View File

@ -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="Creates route handler with `actix_web::guard::Get`."><title>get in actix_web_codegen - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-dd39b87e5fcfba68.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="actix_web_codegen" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (bdbbb6c6a 2024-05-26)" data-channel="nightly" data-search-js="search-d52510db62a78183.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-118b08c4c78b968e.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-df360f571f6edeae.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></head><body class="rustdoc attr"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../actix_web_codegen/index.html"><img src="https://actix.rs/img/logo.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../actix_web_codegen/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2><a href="../actix_web_codegen/index.html">actix_web_codegen</a><span class="version">4.2.2</span></h2></div><div class="sidebar-elems"></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Attribute Macro <a href="index.html">actix_web_codegen</a>::<wbr><a class="attr" href="#">get</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../src/actix_web_codegen/lib.rs.html#190">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>#[get]</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates route handler with <code>actix_web::guard::Get</code>.</p>
<h2 id="syntax"><a class="doc-anchor" href="#syntax">§</a>Syntax</h2><div class="example-wrap"><pre class="language-plain"><code>#[get(&quot;path&quot;[, attributes])]
</code></pre></div><h2 id="attributes"><a class="doc-anchor" href="#attributes">§</a>Attributes</h2>
<ul>
<li><code>&quot;path&quot;</code>: Raw literal string with path for which to register handler.</li>
<li><code>name = &quot;resource_name&quot;</code>: Specifies resource name for the handler. If not set, the
function name of handler is used.</li>
<li><code>guard = &quot;function_name&quot;</code>: Registers function as guard using <code>actix_web::guard::fn_guard</code>.</li>
<li><code>wrap = &quot;Middleware&quot;</code>: Registers a resource middleware.</li>
</ul>
<h2 id="notes"><a class="doc-anchor" href="#notes">§</a>Notes</h2>
<p>Function name can be specified as any expression that is going to be accessible to the
generate code, e.g <code>my_guard</code> or <code>my_module::my_guard</code>.</p>
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="attr">#[get(<span class="string">"/"</span>)]
</span><span class="kw">async fn </span>example() -&gt; HttpResponse {
HttpResponse::Ok().finish()
}</code></pre></div>
</div></details></section></div></main></body></html>

View File

@ -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="Creates route handler with `actix_web::guard::Head`."><title>head in actix_web_codegen - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-dd39b87e5fcfba68.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="actix_web_codegen" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (bdbbb6c6a 2024-05-26)" data-channel="nightly" data-search-js="search-d52510db62a78183.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-118b08c4c78b968e.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-df360f571f6edeae.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></head><body class="rustdoc attr"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../actix_web_codegen/index.html"><img src="https://actix.rs/img/logo.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../actix_web_codegen/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2><a href="../actix_web_codegen/index.html">actix_web_codegen</a><span class="version">4.2.2</span></h2></div><div class="sidebar-elems"></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Attribute Macro <a href="index.html">actix_web_codegen</a>::<wbr><a class="attr" href="#">head</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../src/actix_web_codegen/lib.rs.html#194">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>#[head]</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates route handler with <code>actix_web::guard::Head</code>.</p>
<h2 id="syntax"><a class="doc-anchor" href="#syntax">§</a>Syntax</h2><div class="example-wrap"><pre class="language-plain"><code>#[head(&quot;path&quot;[, attributes])]
</code></pre></div><h2 id="attributes"><a class="doc-anchor" href="#attributes">§</a>Attributes</h2>
<ul>
<li><code>&quot;path&quot;</code>: Raw literal string with path for which to register handler.</li>
<li><code>name = &quot;resource_name&quot;</code>: Specifies resource name for the handler. If not set, the
function name of handler is used.</li>
<li><code>guard = &quot;function_name&quot;</code>: Registers function as guard using <code>actix_web::guard::fn_guard</code>.</li>
<li><code>wrap = &quot;Middleware&quot;</code>: Registers a resource middleware.</li>
</ul>
<h2 id="notes"><a class="doc-anchor" href="#notes">§</a>Notes</h2>
<p>Function name can be specified as any expression that is going to be accessible to the
generate code, e.g <code>my_guard</code> or <code>my_module::my_guard</code>.</p>
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="attr">#[head(<span class="string">"/"</span>)]
</span><span class="kw">async fn </span>example() -&gt; HttpResponse {
HttpResponse::Ok().finish()
}</code></pre></div>
</div></details></section></div></main></body></html>

View File

@ -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="Marks async main function as the Actix Web system entry-point."><title>main in actix_web_codegen - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-dd39b87e5fcfba68.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="actix_web_codegen" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (bdbbb6c6a 2024-05-26)" data-channel="nightly" data-search-js="search-d52510db62a78183.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-118b08c4c78b968e.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-df360f571f6edeae.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></head><body class="rustdoc attr"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../actix_web_codegen/index.html"><img src="https://actix.rs/img/logo.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../actix_web_codegen/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2><a href="../actix_web_codegen/index.html">actix_web_codegen</a><span class="version">4.2.2</span></h2></div><div class="sidebar-elems"></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Attribute Macro <a href="index.html">actix_web_codegen</a>::<wbr><a class="attr" href="#">main</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../src/actix_web_codegen/lib.rs.html#214-222">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>#[main]</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Marks async main function as the Actix Web system entry-point.</p>
<p>Note that Actix Web also works under <code>#[tokio::main]</code> since version 4.0. However, this macro is
still necessary for actor support (since actors use a <code>System</code>). Read more in the
<a href="https://docs.rs/actix-web/4/actix_web/rt"><code>actix_web::rt</code></a> module docs.</p>
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="attr">#[actix_web::main]
</span><span class="kw">async fn </span>main() {
<span class="kw">async </span>{ <span class="macro">println!</span>(<span class="string">"Hello world"</span>); }.<span class="kw">await
</span>}</code></pre></div>
</div></details></section></div></main></body></html>

View File

@ -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="Creates route handler with `actix_web::guard::Options`."><title>options in actix_web_codegen - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-dd39b87e5fcfba68.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="actix_web_codegen" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (bdbbb6c6a 2024-05-26)" data-channel="nightly" data-search-js="search-d52510db62a78183.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-118b08c4c78b968e.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-df360f571f6edeae.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></head><body class="rustdoc attr"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../actix_web_codegen/index.html"><img src="https://actix.rs/img/logo.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../actix_web_codegen/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2><a href="../actix_web_codegen/index.html">actix_web_codegen</a><span class="version">4.2.2</span></h2></div><div class="sidebar-elems"></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Attribute Macro <a href="index.html">actix_web_codegen</a>::<wbr><a class="attr" href="#">options</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../src/actix_web_codegen/lib.rs.html#196">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>#[options]</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates route handler with <code>actix_web::guard::Options</code>.</p>
<h2 id="syntax"><a class="doc-anchor" href="#syntax">§</a>Syntax</h2><div class="example-wrap"><pre class="language-plain"><code>#[options(&quot;path&quot;[, attributes])]
</code></pre></div><h2 id="attributes"><a class="doc-anchor" href="#attributes">§</a>Attributes</h2>
<ul>
<li><code>&quot;path&quot;</code>: Raw literal string with path for which to register handler.</li>
<li><code>name = &quot;resource_name&quot;</code>: Specifies resource name for the handler. If not set, the
function name of handler is used.</li>
<li><code>guard = &quot;function_name&quot;</code>: Registers function as guard using <code>actix_web::guard::fn_guard</code>.</li>
<li><code>wrap = &quot;Middleware&quot;</code>: Registers a resource middleware.</li>
</ul>
<h2 id="notes"><a class="doc-anchor" href="#notes">§</a>Notes</h2>
<p>Function name can be specified as any expression that is going to be accessible to the
generate code, e.g <code>my_guard</code> or <code>my_module::my_guard</code>.</p>
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="attr">#[options(<span class="string">"/"</span>)]
</span><span class="kw">async fn </span>example() -&gt; HttpResponse {
HttpResponse::Ok().finish()
}</code></pre></div>
</div></details></section></div></main></body></html>

View File

@ -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="Creates route handler with `actix_web::guard::Patch`."><title>patch in actix_web_codegen - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-dd39b87e5fcfba68.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="actix_web_codegen" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (bdbbb6c6a 2024-05-26)" data-channel="nightly" data-search-js="search-d52510db62a78183.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-118b08c4c78b968e.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-df360f571f6edeae.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></head><body class="rustdoc attr"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../actix_web_codegen/index.html"><img src="https://actix.rs/img/logo.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../actix_web_codegen/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2><a href="../actix_web_codegen/index.html">actix_web_codegen</a><span class="version">4.2.2</span></h2></div><div class="sidebar-elems"></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Attribute Macro <a href="index.html">actix_web_codegen</a>::<wbr><a class="attr" href="#">patch</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../src/actix_web_codegen/lib.rs.html#198">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>#[patch]</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates route handler with <code>actix_web::guard::Patch</code>.</p>
<h2 id="syntax"><a class="doc-anchor" href="#syntax">§</a>Syntax</h2><div class="example-wrap"><pre class="language-plain"><code>#[patch(&quot;path&quot;[, attributes])]
</code></pre></div><h2 id="attributes"><a class="doc-anchor" href="#attributes">§</a>Attributes</h2>
<ul>
<li><code>&quot;path&quot;</code>: Raw literal string with path for which to register handler.</li>
<li><code>name = &quot;resource_name&quot;</code>: Specifies resource name for the handler. If not set, the
function name of handler is used.</li>
<li><code>guard = &quot;function_name&quot;</code>: Registers function as guard using <code>actix_web::guard::fn_guard</code>.</li>
<li><code>wrap = &quot;Middleware&quot;</code>: Registers a resource middleware.</li>
</ul>
<h2 id="notes"><a class="doc-anchor" href="#notes">§</a>Notes</h2>
<p>Function name can be specified as any expression that is going to be accessible to the
generate code, e.g <code>my_guard</code> or <code>my_module::my_guard</code>.</p>
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="attr">#[patch(<span class="string">"/"</span>)]
</span><span class="kw">async fn </span>example() -&gt; HttpResponse {
HttpResponse::Ok().finish()
}</code></pre></div>
</div></details></section></div></main></body></html>

View File

@ -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="Creates route handler with `actix_web::guard::Post`."><title>post in actix_web_codegen - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-dd39b87e5fcfba68.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="actix_web_codegen" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (bdbbb6c6a 2024-05-26)" data-channel="nightly" data-search-js="search-d52510db62a78183.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-118b08c4c78b968e.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-df360f571f6edeae.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></head><body class="rustdoc attr"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../actix_web_codegen/index.html"><img src="https://actix.rs/img/logo.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../actix_web_codegen/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2><a href="../actix_web_codegen/index.html">actix_web_codegen</a><span class="version">4.2.2</span></h2></div><div class="sidebar-elems"></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Attribute Macro <a href="index.html">actix_web_codegen</a>::<wbr><a class="attr" href="#">post</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../src/actix_web_codegen/lib.rs.html#191">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>#[post]</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates route handler with <code>actix_web::guard::Post</code>.</p>
<h2 id="syntax"><a class="doc-anchor" href="#syntax">§</a>Syntax</h2><div class="example-wrap"><pre class="language-plain"><code>#[post(&quot;path&quot;[, attributes])]
</code></pre></div><h2 id="attributes"><a class="doc-anchor" href="#attributes">§</a>Attributes</h2>
<ul>
<li><code>&quot;path&quot;</code>: Raw literal string with path for which to register handler.</li>
<li><code>name = &quot;resource_name&quot;</code>: Specifies resource name for the handler. If not set, the
function name of handler is used.</li>
<li><code>guard = &quot;function_name&quot;</code>: Registers function as guard using <code>actix_web::guard::fn_guard</code>.</li>
<li><code>wrap = &quot;Middleware&quot;</code>: Registers a resource middleware.</li>
</ul>
<h2 id="notes"><a class="doc-anchor" href="#notes">§</a>Notes</h2>
<p>Function name can be specified as any expression that is going to be accessible to the
generate code, e.g <code>my_guard</code> or <code>my_module::my_guard</code>.</p>
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="attr">#[post(<span class="string">"/"</span>)]
</span><span class="kw">async fn </span>example() -&gt; HttpResponse {
HttpResponse::Ok().finish()
}</code></pre></div>
</div></details></section></div></main></body></html>

View File

@ -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="Creates route handler with `actix_web::guard::Put`."><title>put in actix_web_codegen - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-dd39b87e5fcfba68.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="actix_web_codegen" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (bdbbb6c6a 2024-05-26)" data-channel="nightly" data-search-js="search-d52510db62a78183.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-118b08c4c78b968e.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-df360f571f6edeae.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></head><body class="rustdoc attr"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../actix_web_codegen/index.html"><img src="https://actix.rs/img/logo.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../actix_web_codegen/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2><a href="../actix_web_codegen/index.html">actix_web_codegen</a><span class="version">4.2.2</span></h2></div><div class="sidebar-elems"></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Attribute Macro <a href="index.html">actix_web_codegen</a>::<wbr><a class="attr" href="#">put</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../src/actix_web_codegen/lib.rs.html#192">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>#[put]</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates route handler with <code>actix_web::guard::Put</code>.</p>
<h2 id="syntax"><a class="doc-anchor" href="#syntax">§</a>Syntax</h2><div class="example-wrap"><pre class="language-plain"><code>#[put(&quot;path&quot;[, attributes])]
</code></pre></div><h2 id="attributes"><a class="doc-anchor" href="#attributes">§</a>Attributes</h2>
<ul>
<li><code>&quot;path&quot;</code>: Raw literal string with path for which to register handler.</li>
<li><code>name = &quot;resource_name&quot;</code>: Specifies resource name for the handler. If not set, the
function name of handler is used.</li>
<li><code>guard = &quot;function_name&quot;</code>: Registers function as guard using <code>actix_web::guard::fn_guard</code>.</li>
<li><code>wrap = &quot;Middleware&quot;</code>: Registers a resource middleware.</li>
</ul>
<h2 id="notes"><a class="doc-anchor" href="#notes">§</a>Notes</h2>
<p>Function name can be specified as any expression that is going to be accessible to the
generate code, e.g <code>my_guard</code> or <code>my_module::my_guard</code>.</p>
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="attr">#[put(<span class="string">"/"</span>)]
</span><span class="kw">async fn </span>example() -&gt; HttpResponse {
HttpResponse::Ok().finish()
}</code></pre></div>
</div></details></section></div></main></body></html>

View File

@ -0,0 +1,21 @@
<!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="Creates resource handler, allowing multiple HTTP method guards."><title>route in actix_web_codegen - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-dd39b87e5fcfba68.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="actix_web_codegen" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (bdbbb6c6a 2024-05-26)" data-channel="nightly" data-search-js="search-d52510db62a78183.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-118b08c4c78b968e.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-df360f571f6edeae.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></head><body class="rustdoc attr"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../actix_web_codegen/index.html"><img src="https://actix.rs/img/logo.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../actix_web_codegen/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2><a href="../actix_web_codegen/index.html">actix_web_codegen</a><span class="version">4.2.2</span></h2></div><div class="sidebar-elems"></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Attribute Macro <a href="index.html">actix_web_codegen</a>::<wbr><a class="attr" href="#">route</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../src/actix_web_codegen/lib.rs.html#117-119">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>#[route]</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates resource handler, allowing multiple HTTP method guards.</p>
<h2 id="syntax"><a class="doc-anchor" href="#syntax">§</a>Syntax</h2><div class="example-wrap"><pre class="language-plain"><code>#[route(&quot;path&quot;, method=&quot;HTTP_METHOD&quot;[, attributes])]
</code></pre></div><h2 id="attributes"><a class="doc-anchor" href="#attributes">§</a>Attributes</h2>
<ul>
<li><code>&quot;path&quot;</code>: Raw literal string with path for which to register handler.</li>
<li><code>name = &quot;resource_name&quot;</code>: Specifies resource name for the handler. If not set, the function
name of handler is used.</li>
<li><code>method = &quot;HTTP_METHOD&quot;</code>: Registers HTTP method to provide guard for. Upper-case string,
“GET”, “POST” for example.</li>
<li><code>guard = &quot;function_name&quot;</code>: Registers function as guard using <code>actix_web::guard::fn_guard</code>.</li>
<li><code>wrap = &quot;Middleware&quot;</code>: Registers a resource middleware.</li>
</ul>
<h2 id="notes"><a class="doc-anchor" href="#notes">§</a>Notes</h2>
<p>Function name can be specified as any expression that is going to be accessible to the generate
code, e.g <code>my_guard</code> or <code>my_module::my_guard</code>.</p>
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="attr">#[route(<span class="string">"/test"</span>, method = <span class="string">"GET"</span>, method = <span class="string">"HEAD"</span>, method = <span class="string">"CUSTOM"</span>)]
</span><span class="kw">async fn </span>example() -&gt; HttpResponse {
HttpResponse::Ok().finish()
}</code></pre></div>
</div></details></section></div></main></body></html>

View File

@ -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="Creates resource handler, allowing multiple HTTP methods and paths."><title>routes in actix_web_codegen - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-dd39b87e5fcfba68.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="actix_web_codegen" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (bdbbb6c6a 2024-05-26)" data-channel="nightly" data-search-js="search-d52510db62a78183.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-118b08c4c78b968e.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-df360f571f6edeae.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></head><body class="rustdoc attr"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../actix_web_codegen/index.html"><img src="https://actix.rs/img/logo.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../actix_web_codegen/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2><a href="../actix_web_codegen/index.html">actix_web_codegen</a><span class="version">4.2.2</span></h2></div><div class="sidebar-elems"></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Attribute Macro <a href="index.html">actix_web_codegen</a>::<wbr><a class="attr" href="#">routes</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../src/actix_web_codegen/lib.rs.html#150-152">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>#[routes]</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates resource handler, allowing multiple HTTP methods and paths.</p>
<h2 id="syntax"><a class="doc-anchor" href="#syntax">§</a>Syntax</h2><div class="example-wrap"><pre class="language-plain"><code>#[routes]
#[&lt;method&gt;(&quot;path&quot;, ...)]
#[&lt;method&gt;(&quot;path&quot;, ...)]
...
</code></pre></div><h2 id="attributes"><a class="doc-anchor" href="#attributes">§</a>Attributes</h2>
<p>The <code>routes</code> macro itself has no parameters, but allows specifying the attribute macros for
the multiple paths and/or methods, e.g. <a href="attr.get.html" title="attr actix_web_codegen::get"><code>GET</code></a> and <a href="attr.post.html" title="attr actix_web_codegen::post"><code>POST</code></a>.</p>
<p>These helper attributes take the same parameters as the <a href="index.html#single-method-handler" title="mod actix_web_codegen">single method handlers</a>.</p>
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="attr">#[routes]
#[get(<span class="string">"/test"</span>)]
#[get(<span class="string">"/test2"</span>)]
#[delete(<span class="string">"/test"</span>)]
</span><span class="kw">async fn </span>example() -&gt; HttpResponse {
HttpResponse::Ok().finish()
}</code></pre></div>
</div></details></section></div></main></body></html>

View File

@ -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="Marks async test functions to use the Actix Web system entry-point."><title>test in actix_web_codegen - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-dd39b87e5fcfba68.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="actix_web_codegen" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (bdbbb6c6a 2024-05-26)" data-channel="nightly" data-search-js="search-d52510db62a78183.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-118b08c4c78b968e.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-df360f571f6edeae.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></head><body class="rustdoc attr"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../actix_web_codegen/index.html"><img src="https://actix.rs/img/logo.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../actix_web_codegen/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2><a href="../actix_web_codegen/index.html">actix_web_codegen</a><span class="version">4.2.2</span></h2></div><div class="sidebar-elems"></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Attribute Macro <a href="index.html">actix_web_codegen</a>::<wbr><a class="attr" href="#">test</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../src/actix_web_codegen/lib.rs.html#234-242">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>#[test]</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Marks async test functions to use the Actix Web system entry-point.</p>
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="attr">#[actix_web::test]
</span><span class="kw">async fn </span>test() {
<span class="macro">assert_eq!</span>(<span class="kw">async </span>{ <span class="string">"Hello world" </span>}.<span class="kw">await</span>, <span class="string">"Hello world"</span>);
}</code></pre></div>
</div></details></section></div></main></body></html>

View File

@ -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="Creates route handler with `actix_web::guard::Trace`."><title>trace in actix_web_codegen - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-dd39b87e5fcfba68.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="actix_web_codegen" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (bdbbb6c6a 2024-05-26)" data-channel="nightly" data-search-js="search-d52510db62a78183.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-118b08c4c78b968e.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-df360f571f6edeae.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></head><body class="rustdoc attr"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../actix_web_codegen/index.html"><img src="https://actix.rs/img/logo.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../actix_web_codegen/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2><a href="../actix_web_codegen/index.html">actix_web_codegen</a><span class="version">4.2.2</span></h2></div><div class="sidebar-elems"></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Attribute Macro <a href="index.html">actix_web_codegen</a>::<wbr><a class="attr" href="#">trace</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../src/actix_web_codegen/lib.rs.html#197">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>#[trace]</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates route handler with <code>actix_web::guard::Trace</code>.</p>
<h2 id="syntax"><a class="doc-anchor" href="#syntax">§</a>Syntax</h2><div class="example-wrap"><pre class="language-plain"><code>#[trace(&quot;path&quot;[, attributes])]
</code></pre></div><h2 id="attributes"><a class="doc-anchor" href="#attributes">§</a>Attributes</h2>
<ul>
<li><code>&quot;path&quot;</code>: Raw literal string with path for which to register handler.</li>
<li><code>name = &quot;resource_name&quot;</code>: Specifies resource name for the handler. If not set, the
function name of handler is used.</li>
<li><code>guard = &quot;function_name&quot;</code>: Registers function as guard using <code>actix_web::guard::fn_guard</code>.</li>
<li><code>wrap = &quot;Middleware&quot;</code>: Registers a resource middleware.</li>
</ul>
<h2 id="notes"><a class="doc-anchor" href="#notes">§</a>Notes</h2>
<p>Function name can be specified as any expression that is going to be accessible to the
generate code, e.g <code>my_guard</code> or <code>my_module::my_guard</code>.</p>
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="attr">#[trace(<span class="string">"/"</span>)]
</span><span class="kw">async fn </span>example() -&gt; HttpResponse {
HttpResponse::Ok().finish()
}</code></pre></div>
</div></details></section></div></main></body></html>

View File

@ -0,0 +1,43 @@
<!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="Routing and runtime macros for Actix Web."><title>actix_web_codegen - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-dd39b87e5fcfba68.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="actix_web_codegen" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (bdbbb6c6a 2024-05-26)" data-channel="nightly" data-search-js="search-d52510db62a78183.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-118b08c4c78b968e.js"></script><script defer src="../crates.js"></script><script defer src="../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-df360f571f6edeae.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></head><body class="rustdoc mod crate"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../actix_web_codegen/index.html"><img src="https://actix.rs/img/logo.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../actix_web_codegen/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2><a href="../actix_web_codegen/index.html">actix_web_codegen</a><span class="version">4.2.2</span></h2></div><div class="sidebar-elems"><ul class="block"><li><a id="all-types" href="all.html">All Items</a></li></ul><section><ul class="block"><li><a href="#attributes">Attribute Macros</a></li></ul></section></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Crate <a class="mod" href="#">actix_web_codegen</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../src/actix_web_codegen/lib.rs.html#1-242">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Routing and runtime macros for Actix Web.</p>
<h2 id="actix-web-re-exports"><a class="doc-anchor" href="#actix-web-re-exports">§</a>Actix Web Re-exports</h2>
<p>Actix Web re-exports a version of this crate in its entirety so you usually dont have to
specify a dependency on this crate explicitly. Sometimes, however, updates are made to this
crate before the actix-web dependency is updated. Therefore, code examples here will show
explicit imports. Check the latest <a href="https://docs.rs/actix-web/latest/actix_web/#attributes">actix-web attributes docs</a> to see which macros
are re-exported.</p>
<h2 id="runtime-setup"><a class="doc-anchor" href="#runtime-setup">§</a>Runtime Setup</h2>
<p>Used for setting up the actix async runtime. See <a href="attr.main.html" title="attr actix_web_codegen::main">main</a> macro docs.</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="attr">#[actix_web_codegen::main] </span><span class="comment">// or `#[actix_web::main]` in Actix Web apps
</span><span class="kw">async fn </span>main() {
<span class="kw">async </span>{ <span class="macro">println!</span>(<span class="string">"Hello world"</span>); }.<span class="kw">await
</span>}</code></pre></div>
<h2 id="single-method-handler"><a class="doc-anchor" href="#single-method-handler">§</a>Single Method Handler</h2>
<p>There is a macro to set up a handler for each of the most common HTTP methods that also define
additional guards and route-specific middleware.</p>
<p>See docs for: <a href="attr.get.html" title="attr actix_web_codegen::get">GET</a>, <a href="attr.post.html" title="attr actix_web_codegen::post">POST</a>, <a href="attr.patch.html" title="attr actix_web_codegen::patch">PATCH</a>, <a href="attr.put.html" title="attr actix_web_codegen::put">PUT</a>, <a href="attr.delete.html" title="attr actix_web_codegen::delete">DELETE</a>, <a href="attr.head.html" title="attr actix_web_codegen::head">HEAD</a>, <a href="macro@macro@connect">CONNECT</a>, <a href="attr.options.html" title="attr actix_web_codegen::options">OPTIONS</a>, <a href="attr.trace.html" title="attr actix_web_codegen::trace">TRACE</a></p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="attr">#[get(<span class="string">"/test"</span>)]
</span><span class="kw">async fn </span>get_handler() -&gt; HttpResponse {
HttpResponse::Ok().finish()
}</code></pre></div>
<h2 id="multiple-method-handlers"><a class="doc-anchor" href="#multiple-method-handlers">§</a>Multiple Method Handlers</h2>
<p>Similar to the single method handler macro but takes one or more arguments for the HTTP methods
it should respond to. See <a href="attr.route.html" title="attr actix_web_codegen::route">route</a> macro docs.</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="attr">#[route(<span class="string">"/test"</span>, method = <span class="string">"GET"</span>, method = <span class="string">"HEAD"</span>)]
</span><span class="kw">async fn </span>get_and_head_handler() -&gt; HttpResponse {
HttpResponse::Ok().finish()
}</code></pre></div>
<h2 id="multiple-path-handlers"><a class="doc-anchor" href="#multiple-path-handlers">§</a>Multiple Path Handlers</h2>
<p>Acts as a wrapper for multiple single method handler macros. It takes no arguments and
delegates those to the macros for the individual methods. See <a href="attr.routes.html" title="attr actix_web_codegen::routes">routes</a> macro docs.</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="attr">#[routes]
#[get(<span class="string">"/test"</span>)]
#[get(<span class="string">"/test2"</span>)]
#[delete(<span class="string">"/test"</span>)]
</span><span class="kw">async fn </span>example() -&gt; HttpResponse {
HttpResponse::Ok().finish()
}</code></pre></div>
</div></details><h2 id="attributes" class="section-header">Attribute Macros<a href="#attributes" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="attr" href="attr.connect.html" title="attr actix_web_codegen::connect">connect</a></div><div class="desc docblock-short">Creates route handler with <code>actix_web::guard::Connect</code>.</div></li><li><div class="item-name"><a class="attr" href="attr.delete.html" title="attr actix_web_codegen::delete">delete</a></div><div class="desc docblock-short">Creates route handler with <code>actix_web::guard::Delete</code>.</div></li><li><div class="item-name"><a class="attr" href="attr.get.html" title="attr actix_web_codegen::get">get</a></div><div class="desc docblock-short">Creates route handler with <code>actix_web::guard::Get</code>.</div></li><li><div class="item-name"><a class="attr" href="attr.head.html" title="attr actix_web_codegen::head">head</a></div><div class="desc docblock-short">Creates route handler with <code>actix_web::guard::Head</code>.</div></li><li><div class="item-name"><a class="attr" href="attr.main.html" title="attr actix_web_codegen::main">main</a></div><div class="desc docblock-short">Marks async main function as the Actix Web system entry-point.</div></li><li><div class="item-name"><a class="attr" href="attr.options.html" title="attr actix_web_codegen::options">options</a></div><div class="desc docblock-short">Creates route handler with <code>actix_web::guard::Options</code>.</div></li><li><div class="item-name"><a class="attr" href="attr.patch.html" title="attr actix_web_codegen::patch">patch</a></div><div class="desc docblock-short">Creates route handler with <code>actix_web::guard::Patch</code>.</div></li><li><div class="item-name"><a class="attr" href="attr.post.html" title="attr actix_web_codegen::post">post</a></div><div class="desc docblock-short">Creates route handler with <code>actix_web::guard::Post</code>.</div></li><li><div class="item-name"><a class="attr" href="attr.put.html" title="attr actix_web_codegen::put">put</a></div><div class="desc docblock-short">Creates route handler with <code>actix_web::guard::Put</code>.</div></li><li><div class="item-name"><a class="attr" href="attr.route.html" title="attr actix_web_codegen::route">route</a></div><div class="desc docblock-short">Creates resource handler, allowing multiple HTTP method guards.</div></li><li><div class="item-name"><a class="attr" href="attr.routes.html" title="attr actix_web_codegen::routes">routes</a></div><div class="desc docblock-short">Creates resource handler, allowing multiple HTTP methods and paths.</div></li><li><div class="item-name"><a class="attr" href="attr.test.html" title="attr actix_web_codegen::test">test</a></div><div class="desc docblock-short">Marks async test functions to use the Actix Web system entry-point.</div></li><li><div class="item-name"><a class="attr" href="attr.trace.html" title="attr actix_web_codegen::trace">trace</a></div><div class="desc docblock-short">Creates route handler with <code>actix_web::guard::Trace</code>.</div></li></ul></section></div></main></body></html>

View File

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"attr":["connect","delete","get","head","main","options","patch","post","put","route","routes","test","trace"]};