Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.
/ actix_lambda_http Public archive

Actix Web Framework 1.x β†πŸ”—β†’ AWS Lambda + API Gateway

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

yvt/actix_lambda_http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

actix_lambda_http

docs.rs

Actix-AWS Lambda connector for Actix 1.x

This crate provides an AWS Lambda handler function that responds to ALB and API Gateway proxy events using a provided Actix web application.

Usage

use actix_web::{App, HttpResponse, web};

fn index(req: actix_web::HttpRequest) -> HttpResponse {
    HttpResponse::Ok()
        .content_type("text/plain")
        .body(format!("request data:\n\n{:#?}", req))
}

fn main() {
    actix_lambda_http::LambdaHttpServer::new(|| {
        App::new()
            .wrap(actix_web::middleware::Logger::default())
            .route("/", web::to(index))
    })
    .binary_media_types(vec!["image/png"])
    .start()
    .unwrap();
}

License: MIT/Apache-2.0

About

Actix Web Framework 1.x β†πŸ”—β†’ AWS Lambda + API Gateway

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages