0

I am using google endpoints frameworks but there is one requirement for me to send custom header to requester in the response.

But, in google endpoints all responses are returned as an object of Message class therefore was not able to find anyway to set my headers in the response to the requester.

Please help me with any such approach in which i can add my headers to the response

1 Answer 1

-1

Found this by googling: How to Add Custom Response Headers to Google Cloud Endpoints

4
  • I also encountered this post but i want a inbuilt functionality of endpoints (If any) to set headers for my request. instead of some patching Dec 28, 2017 at 6:32
  • I'm the dev working on this framework, and I've added this as a feature request. Dec 28, 2017 at 19:14
  • Thanks @RoseDavidson Dec 29, 2017 at 6:10
  • Somewhat late comment but if there a built-in solution for this? I would expect a decorator where you define the header keyword for the desired endpoint: cloud.google.com/endpoints/docs/frameworks/python/… @RoseDavidson
    – panos
    Jun 24, 2022 at 9:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.