python-lambdarest icon indicating copy to clipboard operation
python-lambdarest copied to clipboard

[Feature Request] Add support for form submission

Open sphaugh opened this issue 4 years ago • 3 comments

@sloev I have a decorator for handling form submissions with Werkzeug: https://gist.github.com/sphaugh/101c980d632ea2a6ccbbe03ac8526697

Can we integrate this with lambdarest? I was thinking it could be an option similar to load_json. I had tried to write a PR for it but couldn't get the unit tests to pass. 😕

(Note that API Gateway doesn't send the Content-Length header for some reason, which is why I used len(body) instead.)

sphaugh avatar Oct 10 '21 15:10 sphaugh

I'd also like to see werkzeug.datastructures.Headers used elsewhere, since API Gateway has the annoying quirk of sending lowercased headers while SAM local sends them as-is.

sphaugh avatar Oct 10 '21 15:10 sphaugh

@sphaugh hi, can you submit the pr no matter if it passes unittests or not so i have something more for the eyes :-)

sloev avatar Oct 15 '21 07:10 sloev

no action by submitter, closing issue

sloev avatar Jan 03 '22 07:01 sloev

⚠️ lambdarest is not maintained anymore, if anybody wanna take over, please contact me by email: johannes.valbjorn+lambdarest at the usual domain that rimes on email

sloev avatar Sep 12 '22 10:09 sloev