mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-28 01:32:57 +01:00
Deploying to gh-pages from @ 25d3d34927
🚀
This commit is contained in:
parent
7d95f19483
commit
01538a13fd
@ -28,7 +28,7 @@ modifying session data.</p>
|
|||||||
<span class="prelude-val">Ok</span>(<span class="string">"Welcome!"</span>)
|
<span class="prelude-val">Ok</span>(<span class="string">"Welcome!"</span>)
|
||||||
}
|
}
|
||||||
|
|
||||||
<span class="attribute">#[<span class="ident">actix_rt::main</span>]</span>
|
<span class="attribute">#[<span class="ident">actix_web::main</span>]</span>
|
||||||
<span class="kw">async</span> <span class="kw">fn</span> <span class="ident">main</span>() -> <span class="ident">std::io::Result</span><span class="op"><</span>()<span class="op">></span> {
|
<span class="kw">async</span> <span class="kw">fn</span> <span class="ident">main</span>() -> <span class="ident">std::io::Result</span><span class="op"><</span>()<span class="op">></span> {
|
||||||
<span class="ident">HttpServer::new</span>(
|
<span class="ident">HttpServer::new</span>(
|
||||||
<span class="op">|</span><span class="op">|</span> <span class="ident">App::new</span>()
|
<span class="op">|</span><span class="op">|</span> <span class="ident">App::new</span>()
|
||||||
|
@ -411,7 +411,7 @@
|
|||||||
<span class="doccomment">//! Ok("Welcome!")</span>
|
<span class="doccomment">//! Ok("Welcome!")</span>
|
||||||
<span class="doccomment">//! }</span>
|
<span class="doccomment">//! }</span>
|
||||||
<span class="doccomment">//!</span>
|
<span class="doccomment">//!</span>
|
||||||
<span class="doccomment">//! #[actix_rt::main]</span>
|
<span class="doccomment">//! #[actix_web::main]</span>
|
||||||
<span class="doccomment">//! async fn main() -> std::io::Result<()> {</span>
|
<span class="doccomment">//! async fn main() -> std::io::Result<()> {</span>
|
||||||
<span class="doccomment">//! HttpServer::new(</span>
|
<span class="doccomment">//! HttpServer::new(</span>
|
||||||
<span class="doccomment">//! || App::new()</span>
|
<span class="doccomment">//! || App::new()</span>
|
||||||
|
Loading…
Reference in New Issue
Block a user