响应标头GAE端点 [英] Response header GAE endpoints
问题描述
是否可以控制在Google App Engine的端点中创建响应?
Is it possible to take control over creating response in Google App Engine's Endpoints?
我知道GAE 可以将Request对象注入到某些API方法中
I know that GAE can inject Request object to some API method
。
推荐答案
我认为Google Cloud Endpoints不会正式支持该功能。但您可以尝试做的一件事是扩展com.google.api.server.spi.SystemServiceServlet类,并在那里进行一些自定义。然后,将web.xml文件中的servletclass更改为您创建的那个。
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.
这篇关于响应标头GAE端点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!