Passing a context object to actions

2017-01-06 Thread Dragos Dascalita Haut
Hi, These days I've been doing some work on creating an OpenWhisk action directly from a GitHub repo - issue link [1] ; initial implementation [2] . After successfully deploying a "hello-world" action - [3] I thought about updating the message with some information from an OAuth token. I've us

Re: Passing a context object to actions

2017-01-06 Thread Rodric Rabbah
> * The fact that we need to unpack the request body and change it has an impact on performance Why? Let the event payload be E, and the request context C, you can pass to your action a new dictionary { “event” -> E, “context” -> C }. The gateway doesn’t need to decode E and can treat it as an o