This repository was archived by the owner on Jun 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Investigate writing bindings to a serverless backend #10
Comments
Now seems like a pretty straight forward candidate: current fn handler(request: http::Request<()>) -> http::Result<http::Response<String>> {
// Tide code goes here.
todo!();
} our interpretation use http_service_now::{Error, Request, Response};
fn handler(request: Request) -> Result<Response, Error> {
http_service_now::run(MyService)
} with tide use http_service_now::{Error, Request, Response};
use tide::Tide;
fn handler(request: Request) -> Result<Response, Error> {
let app = Tide::new();
app.at("/foo").get(async || "hello world");
http_service_now::run(app)
} We probably need to wrap things in here somehow inside of a |
Related issue on the AWS side awslabs/aws-lambda-rust-runtime#96 |
8 tasks
Now that we have the initial version of a Lambda backend, do we want to amend or close this issue? cc @yoshuawuyts |
@secretfader thanks for the ping; I think it's fine to close it! (: |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm not sure yet what the right serverless target would be, but I believe one of:
would probably be worth experimenting with to see if we can bind against.
The text was updated successfully, but these errors were encountered: