Join Slack
Powered by
Does anyone know how to set up a http api route in...
# help
a
Adrian Schweizer
12/19/2021, 6:29 PM
Does anyone know how to set up a http api route instead of rest, e.g. for returning a pdf? I have seen this:
https://docs.serverless-stack.com/constructs/Api#configuring-the-http-api
, but don't really understand how to use it.
Adrian Schweizer
12/19/2021, 10:08 PM
forget it, it seems to work with regular Api construct
f
Frank
12/19/2021, 11:12 PM
Hey
@Adrian Schweizer
, yeah regular Api should work. U’d just have to return the correct header.
Frank
12/19/2021, 11:13 PM
Btw.. Lambda can only return to up 6MB of response. So large PDFs wont work
a
Adrian Schweizer
01/12/2022, 10:00 PM
Yeah, I'll probably have to save it to S3 periodically instead. Thanks for mentioning that.
2
Views
Open in Slack
Previous
Next