Response header GAE endpoints

╄→尐↘猪︶ㄣ 提交于 2019-12-08 06:35:50

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!