Open astuyve opened 1 year ago
Yeah, that would be great as some of us need specific headers & status codes :)
Thanks for this library, it's super helpful!
Thanks for chiming in @mikeshot!!
yes I would love this support as well
Keeping an eye on this, are there any updates? Would be really useful @astuyve
Hi @Gr33nLight!
Thanks for reaching out, I just had a baby so I haven't really put much thought into this API. I'd welcome any PRs though!
As per the readme update, users can add headers and a status code to their streaming responses using a built-in helper method like so:
Would library users support shimming this method locally? Should we consider wrapping this in Lambda as well? We could simply always return a ResponseStream with helper support. It seems to be a no-op if an empty object is passed as the
metadata
argument.Thoughts?