openfaas / of-watchdog

Reverse proxy for STDIO and HTTP microservices
MIT License
259 stars 115 forks source link

Provide X-Duration-Seconds header in Serializing mode #43

Closed omrishtam closed 5 years ago

omrishtam commented 5 years ago

Added the X-Duration-Seconds Header in Serializing mode as described in #38.

Description

Added the header in Serializing mode in all cases (success, error)

Motivation and Context

There was an issue (#38) raised about the missing header, which was needed for consistency across classic and of-watchdog.

How Has This Been Tested?

I've ran of-watchdog locally in serializing mode in cases where the request would return success or error, and checked that the X-Duration-Seconds header is set correctly when sending a request to of-watchdog in both cases.

Types of changes

Checklist: