mrutkows / openwhisk-knative-build

Knative build resources for Apache OpenWhisk Functions
Apache License 2.0
0 stars 1 forks source link

web action - response content type #40

Open pritidesai opened 5 years ago

pritidesai commented 5 years ago

If a content-type header is not declared in the action result’s headers, the body is interpreted as application/json for non-string values, and text/html otherwise. When the content-type is defined, the runtime should determine if the response is binary data or plain text and decode the string using a base64 decoder as needed. If the body fail to decode correctly, an error must return to the caller.