Kong / Kong/httpsnippet

Improve code snipper HTTP

未關閉
#304 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
1.2k
分支
242
PR 合併指標
30 天內沒有已合併 PR

描述

Describe the bug

When the HTTP code snippet is generated, it is generated with the first letter in uppercase and the format should be the same as in the header. A difference if the type CURL is selected maintains the correct format.

To Reproduce
Execute a example of request.
Clic in code snipper {}.
In code select HTTP.

Expected behavior
The expected behavior is to keep the same format as the header, as is done in the CURL.

Platform:

OS: Windows 10
vscode version: 1.66.2
extension version: 1.18.7

Example:

Screenshot type http:
![image](https://user-images.githubusercontent.com/20051737/190327916-ea60e182-21d6-4c8a-9f50-343728268941.png)
Screenshot type curl:
![image](https://user-images.githubusercontent.com/20051737/190327997-82c8cdae-81ec-4060-ad9b-a5dcb8ae3440.png)

best regards

貢獻指南

開啟貢獻指南

研究方向

Start by reproducing the request-snippet steps in the issue and compare the generated HTTP and CURL outputs, focusing on capitalization and formatting. The work is done when the HTTP snippet preserves the same format as its header, matching the existing CURL behavior.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
typescript
領域
devtools
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。