Docs.rs
  • http-service-lambda-0.3.1
    • http-service-lambda 0.3.1
    • Permalink
    • Docs.rs crate page
    • MIT OR Apache-2.0
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • yoshuawuyts
    • github:rustasync:maintainers
    • Dependencies
      • futures-preview ^0.3.0-alpha.16 normal
      • http-service ^0.3.1 normal
      • lambda_http ^0.1.1 normal
      • lambda_runtime ^0.2.1 normal
      • tokio ^0.1.21 normal
      • log ^0.4.6 dev
      • simple_logger ^1.3.0 dev
      • tide ^0.2.0 dev
    • Versions
    • 100% of the crate is documented
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-pc-windows-msvc
    • 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

Crate http_service_lambda

http_service_lambda0.3.1

  • All Items

Sections

  • Examples

Crate Items

  • Functions

Crates

  • http_service_lambda

Crate http_service_lambda

Source
Expand description

HttpService server that uses AWS Lambda Rust Runtime as backend.

This crate builds on the standard http interface provided by the lambda_http crate and provides a http server that runs on the lambda runtime.

Compatible services like tide apps can run on lambda and processing events from API Gateway or ALB without much change.

§Examples

Hello World

ⓘ
fn main() {
    let mut app = tide::App::new();
    app.at("/").get(async move |_| "Hello, world!");
    http_service_lambda::run(app.into_http_service());
}

Functions§

run
Run the given HttpService on the default runtime, using lambda_http as backend.

Results

Settings
Help

Query parser error: "Unexpected - (did you mean ->?)".