Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/add fc request context #7

Merged

Conversation

huanhunx
Copy link
Contributor

在请求对象中增加函数计算原始的请求对象,方便在业务中处理一些数据

src/index.js Outdated
@@ -71,6 +71,8 @@ const mapContextToHttpRequest = async (ctx) => {
requestContext: ctx.context, // 把context 挂在到req.requestContext上
queryStringParameters: request.queries || request.query, // url 后缀 params 参数
httpMethod: request.method,
// 原始的函数计算请求对象,方便获取其中的一些信息
originFCRequest: request
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个名称可以叫 fcRequest

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已修改

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已经发布0.1.0版本

@heimanba heimanba merged commit 359cb72 into Serverless-Devs:main Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants