[][src]Crate actix_lambda

actix_lambda

Runs your actix-web app as a lambda app that will respond to Application Load Balancer requests

This example is not tested
fn root_handler(request: HttpRequest) -> &'static str {
    return "Hello world";
}

fn app() -> App {
    return App::new()
        .route("/", Method::GET, root_handler);
        // More route handlers
}

fn main() {
    actix_lambda::run(app);
}

#[cfg(test)]
mod tests {
    #[test]
    fn lambda_test() {
        actix_lambda::test::lambda_test(main);
    }
}

Modules

test

Test helpers for actix_lambda applications

Functions

run

Runs your actix-web app as a lambda app that will respond to Application Load Balancer requests.