Kong / Kong/httpsnippet

FEATURE REQUEST: add proxy option when generating client code

オープン
#370 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
1.2k
フォーク
242
PR マージ指標
30日以内にマージされた PR はありません

説明

i d like to add a feature that when importing a curl request it recognizes proxy header in curl --socks5-hostname and generates client code with proxy in it.

example
input
```curl --socks5-hostname localhost:9050 https://example.com```

output
```
import requests

url = "https://example.com"
payload = ""
headers = {}
proxies = {
'http': 'socks5://localhost:9050',
'https': 'socks5://localhost:9050',
}

response = requests.request("GET", url, data=payload, headers=headers, proxies=proxies)
```

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start by tracing how curl imports are parsed and how the Python requests client output is generated. Reproduce the shown --socks5-hostname input, then verify that the generated requests code includes the proxy configuration while preserving the existing URL and request details. No file or test is named in the issue.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python, typescript
領域
tooling
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。