Skip to content

recreate pull request form #31 #33

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

Merged
merged 4 commits into from
May 15, 2024
Merged

Conversation

Mr-Ao-Dragon
Copy link
Contributor

#31

Squashed commit:

[c9882b5] typo: 对提交补签

[c2f80f1] add: .gitignore 忽略IDE自动生成的文件
add: Http上下文结构体
add: fc3.0 Http函数回复结构体
@fanzhe328
Copy link
Collaborator

建议给一个测试结果,验证是否所有的请求字段正确解析,响应字段是否有效

@Mr-Ao-Dragon
Copy link
Contributor Author

Mr-Ao-Dragon commented May 10, 2024

建议给一个测试结果,验证是否所有的请求字段正确解析,响应字段是否有效

我马上写

Mr-Ao-Dragon added a commit to Mr-Ao-Dragon/fc-runtime-go-sdk that referenced this pull request May 10, 2024
@Mr-Ao-Dragon
Copy link
Contributor Author

建议给一个测试结果,验证是否所有的请求字段正确解析,响应字段是否有效

代码

测试结果:

  • 日志输出:
FC Invoke Start RequestId: ******
2024/05/10 16:08:43.342237 start print
2024/05/10 16:08:43.342267 Version: v1
2024/05/10 16:08:43.342273 RawPath: /
2024/05/10 16:08:43.342277 Body: 
2024/05/10 16:08:43.342282 Header: Accept-Encoding
2024/05/10 16:08:43.342286 Header: Accept-Language
2024/05/10 16:08:43.342289 Header: Connection
2024/05/10 16:08:43.342292 Header: Sec-Fetch-Mode
2024/05/10 16:08:43.342295 Header: Sec-Fetch-Site
2024/05/10 16:08:43.342297 Header: Upgrade-Insecure-Requests
2024/05/10 16:08:43.342301 Header: Accept
2024/05/10 16:08:43.342303 Header: Sec-Ch-Ua
2024/05/10 16:08:43.342306 Header: Sec-Ch-Ua-Mobile
2024/05/10 16:08:43.342309 Header: Sec-Ch-Ua-Platform
2024/05/10 16:08:43.342313 Header: Sec-Fetch-Dest
2024/05/10 16:08:43.342316 Header: Sec-Fetch-User
2024/05/10 16:08:43.342320 Header: User-Agent
2024/05/10 16:08:43.342323 AccountId: *******
2024/05/10 16:08:43.342326 Domain: ********.**-******.fcapp.run
2024/05/10 16:08:43.342330 DomainPrefix: ******
2024/05/10 16:08:43.342333 Method type: GET
2024/05/10 16:08:43.342336 Path: /
2024/05/10 16:08:43.342339 Protocol: HTTP/1.1
2024/05/10 16:08:43.342343 Request Form: 171.80.249.180
2024/05/10 16:08:43.342348 UserAgent: Mozilla/5.0 (***) AppleWebKit/*** (KHTML, like Gecko) Chrome/*** Safari/*** Edg/***
2024/05/10 16:08:43.342365 RequestId: ***
2024/05/10 16:08:43.342369 Request time: 2024-05-10T08:08:43Z
2024/05/10 16:08:43.342372 TimeEpoch: 1715328523324
2024/05/10 16:08:43.342375 the body is base64 encoded
2024/05/10 16:08:43.342378 body: 
2024/05/10 16:08:43.342382 end print
FC Invoke End RequestId: ******
  • 请求详细信息
StatusCode        : 200
StatusDescription : OK
Content           : <html lang="ZH-CN"><head><title>已经通过测试</title></head><body><h1>请检查日志,如无意外,已打印所有结构体信息</h1></body></html>
RawContent        : HTTP/1.1 200 OK
                    Access-Control-Expose-Headers: Date,*-Request-Id
                    Content-Disposition: attachment
                    X-Fc-Request-Id: 1-*-****-****-*********************************
                    Content-Length: ***
                    Content-Type: text/html; ...
Forms             : {}
Headers           : {[Access-Control-Expose-Headers, Date,*-Request-Id], [Content-Disposition, attachment], [X-Fc-Re
                    quest-Id, 1-*-****-****-*********************************], [Content-Length, ***]...}
Images            : {}
InputFields       : {}
Links             : {}
ParsedHtml        : mshtml.HTMLDocumentClass
RawContentLength  : ***

@Mr-Ao-Dragon
Copy link
Contributor Author

readme忘记更新了我补充提交下

@Mr-Ao-Dragon
Copy link
Contributor Author

@fanzhe328 我这边准备好了

Copy link
Collaborator

@fanzhe328 fanzhe328 left a comment

Choose a reason for hiding this comment

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

LGTM

@fanzhe328 fanzhe328 merged commit 90c1d0b into aliyun:master May 15, 2024
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.

2 participants