简体   繁体   English

HTTP / 2推送AWS API Gateway + Lambda

[英]HTTP/2 pushes on AWS API Gateway + Lambda

Is it possible to run HTTP/2 pushes with aws-serverless-express ? 是否可以使用aws-serverless-express运行HTTP / 2推送?

As far as I know, AWS API gateway supports HTTP/2 (verified with https://tools.keycdn.com/http2-test ). 据我所知,AWS API网关支持HTTP / 2(已通过https://tools.keycdn.com/http2-test验证)。 Unfortunately, I can't find any example of HTTP/2 pushes under node.js app deployed on lambda. 不幸的是,我在lambda上部署的node.js应用程序下找不到HTTP / 2推送的任何示例。

The only example which I found is Node.js app which supports HTTP/2: 我发现的唯一示例是支持HTTP / 2的Node.js应用程序:
https://github.com/azat-co/http2-node-server-push https://github.com/azat-co/http2-node-server-push

Any tips? 有小费吗? Solutions? 解决方案? Is it even possible? 可能吗?

Incoming requests to API Gateway are HTTP2 compatible, but requests from API Gateway to your Lambda function will not be HTTP2. 对API Gateway的传入请求是HTTP2兼容的,但是从API Gateway到Lambda函数的请求将不是HTTP2。 Your function code does not need to support HTTP2. 您的功能代码不需要支持HTTP2。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM