Docs.rs
  • tinyhttp-internal-0.4.0-rc5
    • tinyhttp-internal 0.4.0-rc5
    • Docs.rs crate page
    • GPL-2.0-or-later
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • mateocabanal
    • Dependencies
      • dyn-clone ^1.0.11 normal
      • flate2 ^1 normal
      • infer ^0.15.0 normal
      • log ^0.4 normal
      • mime_guess ^2.0.4 normal
      • num_cpus ^1.16.0 normal
      • openssl ^0.10 normal
      • rusty_pool ^0.7.0 normal
      • thiserror ^1 normal
      • tokio ^1.3 normal
      • criterion ^0.5.1 dev
    • Versions
    • 9.16% of the crate is documented
  • Go to latest stable release
  • Platform
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

tinyhttp_internal0.4.0-rc5

ToResponse

Required Methods

  • to_res

Implementors

In tinyhttp_internal::config

?
Change settings

Trait tinyhttp_internal::config::ToResponse

source ·
pub trait ToResponse: DynClone + Sync + Send {
    // Required method
    fn to_res(&self, res: Request) -> Response;
}

Required Methods§

source

fn to_res(&self, res: Request) -> Response

Implementors§

source§

impl ToResponse for BasicGetRoute

source§

impl ToResponse for BasicPostRoute

source§

impl ToResponse for GetRouteWithReq

source§

impl ToResponse for GetRouteWithReqAndRes

source§

impl ToResponse for PostRouteWithReq

source§

impl ToResponse for PostRouteWithReqAndRes