poem-web / poem

A full-featured and easy-to-use web framework with the Rust programming language.
Apache License 2.0
3.56k stars 286 forks source link

Support serverless framework, such as AWS Lambda #33

Closed rts-gordon closed 2 years ago

rts-gordon commented 3 years ago

Description of the feature

Would you like poem to support AWS Lambda, or other Serverless framework? Thank you.

Code example (if possible)

sunli829 commented 3 years ago

Released in v0.7.1.

Here is the example: https://github.com/poem-web/poem/tree/master/examples/poem/lambda-hello-world

Hope you can help me test it. 😁

rts-gordon commented 3 years ago

You are so efficient, thank you. I will test this new feature in my project.

RustLoverTheCoder commented 3 years ago

awsome

rts-gordon commented 2 years ago

Hi @sunli829
Sorry for the delay of test this feature. I have just tested poem-web run in AWS lambda environment, all looks good, but when I run /hello/:name, it gave some unexpected code as followed:

/hello/gordon           aGVsbG86IGdvcmRvbg==  
/hello/gordon1  aGVsbG86IGdvcmRvbjE=   
/hello/gordon2  aGVsbG86IGdvcmRvbjI=  
/hello/gordon3  aGVsbG86IGdvcmRvbjM=  
/hello/dune     aGVsbG86IGR1bmU=      
/hello/dune1            aGVsbG86IGR1bmUx      
/hello/dune2            aGVsbG86IGR1bmUy      
/hello/dune3           aGVsbG86IGR1bmUz   

Would you like to take a look at this, thanks a lot.