FEATURE REQUEST: add proxy option when generating client code
- Langage dominant
- TypeScript
- Étoiles
- 1.2k
- Forks
- 242
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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)
```
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- python, typescript
- Domaine
- tooling
- Type d'issue
- Fonctionnalité
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 48/100