Skip to content

rawBody http property should not be a UTF-8 string for byte data #4475

@mhoeger

Description

@mhoeger

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions