DonRichie opened a new issue #161:
URL: https://github.com/apache/openwhisk-runtime-go/issues/161
Hello,
I am currently trying to create a response containing headers in openwhisk
with golang.
I feel like I need a nested map with different value types. But since golang
is strongly-typed that is impossible.
My best try as response is:
`
outobj := make(map[string]interface{})
outobj["headers"] = "{\"Content-Type\": \"text/html\"}"
outobj["statusCode"] = 201
outobj["body"] = "123"
return outobj
`
But invoking that action gives an http error.
Can someone provide an example how to set headers in the golang response?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]