connector-sdk icon indicating copy to clipboard operation
connector-sdk copied to clipboard

Update invokefunction to return headers

Open alexellis opened this issue 6 years ago • 3 comments

Task:

  • Update invokefunction to return the response headers
  • Update the caller function named Invoke to return the body, statusCode and errors
  • Update example to print statusCode and body

Suggested by Simon Pezcler and Rishabh Gupta so that connectors can do better debug and potentially use the result for something.

Right now the result is abandoned.

alexellis avatar Jan 14 '19 18:01 alexellis

We can use headers for logging in response to function invocations, it can be especially useful when connecting to outside services since.

zeerorg avatar Jan 19 '19 04:01 zeerorg

This issue should be closed.

zeerorg avatar Jan 31 '19 14:01 zeerorg

is this the extra header params in https://github.com/openfaas/connector-sdk/blob/d791db5110e29164b697cb133d39f40812296f01/types/controller.go#L58

Supesharisuto avatar Feb 07 '22 16:02 Supesharisuto