mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-24 00:21:08 +01:00
10 lines
11 KiB
HTML
10 lines
11 KiB
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="Lower-level types and re-exports."><title>actix_web::dev - 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" 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 mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../../actix_web/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/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2><a href="../../actix_web/index.html">actix_web</a><span class="version">4.6.0</span></h2></div><h2 class="location"><a href="#">Module dev</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#macros">Macros</a></li><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#traits">Traits</a></li><li><a href="#functions">Functions</a></li></ul></section><h2><a href="../index.html">In crate actix_web</a></h2></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>Module <a href="../index.html">actix_web</a>::<wbr><a class="mod" href="#">dev</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/dev.rs.html#1-47">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Lower-level types and re-exports.</p>
|
||
<p>Most users will not have to interact with the types in this module, but it is useful for those
|
||
writing extractors, middleware, libraries, or interacting with the service API directly.</p>
|
||
<h2 id="request-extractors"><a class="doc-anchor" href="#request-extractors">§</a>Request Extractors</h2>
|
||
<ul>
|
||
<li><a href="struct.ConnectionInfo.html" title="struct actix_web::dev::ConnectionInfo"><code>ConnectionInfo</code></a>: Connection information</li>
|
||
<li><a href="struct.PeerAddr.html" title="struct actix_web::dev::PeerAddr"><code>PeerAddr</code></a>: Connection information</li>
|
||
</ul>
|
||
</div></details><h2 id="macros" class="section-header">Macros<a href="#macros" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="macro" href="macro.always_ready.html" title="macro actix_web::dev::always_ready">always_ready</a></div><div class="desc docblock-short">An implementation of <a href=""><code>poll_ready</code></a> that always signals readiness.</div></li><li><div class="item-name"><a class="macro" href="macro.forward_ready.html" title="macro actix_web::dev::forward_ready">forward_ready</a></div><div class="desc docblock-short">An implementation of <a href="trait.Service.html#tymethod.poll_ready" title="method actix_web::dev::Service::poll_ready"><code>poll_ready</code></a> that forwards readiness checks to a
|
||
named struct field.</div></li></ul><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.AppConfig.html" title="struct actix_web::dev::AppConfig">AppConfig</a></div><div class="desc docblock-short">Application connection config.</div></li><li><div class="item-name"><a class="struct" href="struct.AppService.html" title="struct actix_web::dev::AppService">AppService</a></div><div class="desc docblock-short">Application configuration</div></li><li><div class="item-name"><a class="struct" href="struct.ConnectionInfo.html" title="struct actix_web::dev::ConnectionInfo">ConnectionInfo</a></div><div class="desc docblock-short">HTTP connection information.</div></li><li><div class="item-name"><a class="struct" href="struct.Decompress.html" title="struct actix_web::dev::Decompress">Decompress</a><span class="stab portability" title="Available on crate feature `__compress` only"><code>__compress</code></span></div></li><li><div class="item-name"><a class="struct" href="struct.Extensions.html" title="struct actix_web::dev::Extensions">Extensions</a></div><div class="desc docblock-short">A type map for request extensions.</div></li><li><div class="item-name"><a class="struct" href="struct.Path.html" title="struct actix_web::dev::Path">Path</a></div><div class="desc docblock-short">Resource path match information.</div></li><li><div class="item-name"><a class="struct" href="struct.PeerAddr.html" title="struct actix_web::dev::PeerAddr">PeerAddr</a></div><div class="desc docblock-short">Extractor for peer’s socket address.</div></li><li><div class="item-name"><a class="struct" href="struct.Readlines.html" title="struct actix_web::dev::Readlines">Readlines</a></div><div class="desc docblock-short">Stream that reads request line by line.</div></li><li><div class="item-name"><a class="struct" href="struct.RequestHead.html" title="struct actix_web::dev::RequestHead">RequestHead</a></div></li><li><div class="item-name"><a class="struct" href="struct.ResourceDef.html" title="struct actix_web::dev::ResourceDef">ResourceDef</a></div><div class="desc docblock-short">Describes the set of paths that match to a resource.</div></li><li><div class="item-name"><a class="struct" href="struct.ResourceMap.html" title="struct actix_web::dev::ResourceMap">ResourceMap</a></div></li><li><div class="item-name"><a class="struct" href="struct.Response.html" title="struct actix_web::dev::Response">Response</a></div><div class="desc docblock-short">An HTTP response.</div></li><li><div class="item-name"><a class="struct" href="struct.ResponseHead.html" title="struct actix_web::dev::ResponseHead">ResponseHead</a></div></li><li><div class="item-name"><a class="struct" href="struct.Server.html" title="struct actix_web::dev::Server">Server</a></div><div class="desc docblock-short">General purpose TCP server that runs services receiving Tokio <code>TcpStream</code>s.</div></li><li><div class="item-name"><a class="struct" href="struct.ServerHandle.html" title="struct actix_web::dev::ServerHandle">ServerHandle</a></div><div class="desc docblock-short">Server handle.</div></li><li><div class="item-name"><a class="struct" href="struct.ServiceRequest.html" title="struct actix_web::dev::ServiceRequest">ServiceRequest</a></div><div class="desc docblock-short">A service level request wrapper.</div></li><li><div class="item-name"><a class="struct" href="struct.ServiceResponse.html" title="struct actix_web::dev::ServiceResponse">ServiceResponse</a></div><div class="desc docblock-short">A service level response wrapper.</div></li><li><div class="item-name"><a class="struct" href="struct.Url.html" title="struct actix_web::dev::Url">Url</a></div></li><li><div class="item-name"><a class="struct" href="struct.UrlEncoded.html" title="struct actix_web::dev::UrlEncoded">UrlEncoded</a></div><div class="desc docblock-short">Future that resolves to some <code>T</code> when parsed from a URL encoded payload.</div></li><li><div class="item-name"><a class="struct" href="struct.WebService.html" title="struct actix_web::dev::WebService">WebService</a></div></li></ul><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="enum" href="enum.JsonBody.html" title="enum actix_web::dev::JsonBody">JsonBody</a></div><div class="desc docblock-short">Future that resolves to some <code>T</code> when parsed from a JSON payload.</div></li><li><div class="item-name"><a class="enum" href="enum.Payload.html" title="enum actix_web::dev::Payload">Payload</a></div><div class="desc docblock-short">A streaming payload.</div></li></ul><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="trait" href="trait.HttpServiceFactory.html" title="trait actix_web::dev::HttpServiceFactory">HttpServiceFactory</a></div></li><li><div class="item-name"><a class="trait" href="trait.ResourcePath.html" title="trait actix_web::dev::ResourcePath">ResourcePath</a></div></li><li><div class="item-name"><a class="trait" href="trait.Service.html" title="trait actix_web::dev::Service">Service</a></div><div class="desc docblock-short">An asynchronous operation from <code>Request</code> to a <code>Response</code>.</div></li><li><div class="item-name"><a class="trait" href="trait.ServiceFactory.html" title="trait actix_web::dev::ServiceFactory">ServiceFactory</a></div><div class="desc docblock-short">Factory for creating <code>Service</code>s.</div></li><li><div class="item-name"><a class="trait" href="trait.Transform.html" title="trait actix_web::dev::Transform">Transform</a></div><div class="desc docblock-short">Defines the interface of a service factory that wraps inner service during construction.</div></li></ul><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="fn" href="fn.fn_factory.html" title="fn actix_web::dev::fn_factory">fn_factory</a></div><div class="desc docblock-short">Create <code>ServiceFactory</code> for function that can produce services</div></li><li><div class="item-name"><a class="fn" href="fn.fn_service.html" title="fn actix_web::dev::fn_service">fn_service</a></div><div class="desc docblock-short">Create <code>ServiceFactory</code> for function that can act as a <code>Service</code></div></li></ul></section></div></main></body></html> |