-
Notifications
You must be signed in to change notification settings - Fork 465
Description
Ideally, the body that we pass to language workers should always be the raw
form (ex: if the body is application/json, then it should be the string version and not the parse'd object). If the language worker wants to add a method on top of that to get a "pretty" object, that is ok, but it should be language-dependent and as an additional method (not the default behavior).
One solution to passing only raw HTTP bodies is to use the rawBody
property.
However - rawBody
is not always the true raw body. In cases where the body is encoded as bytes, rawBody is actually the UTF-8 string version of the body (code here).
This issue tracks making rawBody
consistent, with the ultimate goal of passing the "rawest" form of data possible.
cc: @pragnagopa and @maiqbal11 to add any details