问题
Is it possible to take control over creating response in Google App Engine's Endpoints?
I know that GAE can inject Request object to some API method
Thanks in advance.
回答1:
I don't think Google Cloud Endpoints officially support that. But one thing you can try to do is to extends com.google.api.server.spi.SystemServiceServlet class, and make some customization there. And then change your servletclass in the web.xml file into the one you created.
I personally never try to do that, so I cannot guarantee that will work.
来源:https://stackoverflow.com/questions/19747588/response-header-gae-endpoints