Fork me on GitHub
#holy-lambda
<
2021-10-06
>
Benjamin16:10:35

What does the request look like when I have an apigateway for my Lambda where something get's posted to? Is there a :body key? And is that already clojure data? (input is json)

Benjamin17:10:07

now I figured out the event has a :body key with a string

Karol Wójcik17:10:26

Right. Maybe HL should automatically parse the body?

Benjamin17:10:25

I have no opinion on that either way 😅

steveb8n21:10:31

a generic body parser could get complex since there are a lot of different content-types. I don’t think it’s a big win in the HL feature set compared to other ideas on the roadmap

Karol Wójcik06:10:44

This is probably important for the consistency. HL already auto deserializes the edn & json. Parsing these content-type in body is probably sufficient for 99% cases.

Karol Wójcik06:10:58

But I will not include it in next release for sure. To much stuff is already in the Changelog.

Karol Wójcik07:10:59

And I have to make sure this change will be compatible with the ring specification.

Chris Lowe08:10:29

> a generic body parser could get complex since there are a lot of different content-types. I don’t think it’s a big win in the HL feature set compared to other ideas on the roadmap +1 I’m happy with the current behaviour. Maybe add something to the docs on what to expect for some common AWS services.