Registry / web-framework / lambda-http

lambda-http

JSON →
library1.2.1rscratesunverified

Application Load Balancer and API Gateway event types for AWS Lambda.

# Cargo.toml [dependencies] lambda_http = "1.2.1"
INSTALL
IMPORT
SIG · LAMBDA-HTTP
L
lambda-http
web-frameworkrustv1.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

run
use lambda_http::run;

Minimal AWS Lambda function handler using lambda_http.

use lambda_http::{run, service_fn, Error, IntoResponse, Request}; async fn handler(_: Request) -> Result<impl IntoResponse, Error> { Ok("Hello, World!") } #[tokio::main] async fn main() -> Result<(), Error> { run(service_fn(handler)).await }
Debug
Known issues
gotchaRequires a Tokio runtime
fix
Add tokio as a dependency and use #[tokio::main] or similar.
affects: >=1.0
Upgrade
Version history
1.2.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
lambda-http — cargo add lambda-http · libregistry