Does anyone know how to set up a http api route in...
# help
a
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.
forget it, it seems to work with regular Api construct
f
Hey @Adrian Schweizer, yeah regular Api should work. U’d just have to return the correct header.
Btw.. Lambda can only return to up 6MB of response. So large PDFs wont work
a
Yeah, I'll probably have to save it to S3 periodically instead. Thanks for mentioning that.