Skip to main content

Code Generator

Turn captured requests into cURL, Swift, Python, Go, Kotlin, JavaScript, and other code snippets with the Proxyman Code Generator tab.

1. What's it?โ€‹

Code Generator turns your captured HTTP/HTTPS requests into ready-to-use code for many languages and tools.

Supported languages and formats:

  • cURL
  • HTTPie
  • HAR
  • Postman Collection 2
  • Axios
  • Dart
  • Go
  • Java + HTTPClient
  • JavaScript + jQuery
  • Kotlin + OkHttp
  • Node + HTTP
  • Node + Fetch
  • PHP + Guzzle
  • Python + Request
  • Rust + reqwest
  • Objective-C + NSURLSession
  • Swift + Alamofire 5
  • Swift + Moya
  • Swift + URLSession
Proxyman Code tab with Swift + Alamofire 5 code generated from a captured GET request

2. How to open the Code Generator Tab?โ€‹

  1. In the Request panel, click the "+" button
  2. The Custom Previewer Tab window appears -> check the Code Generator checkbox
Proxyman Custom Previewer Tab window with Code Generator checked and the Code tab showing Swift code

How to open the Code Generator tab

  • A new Code tab is added to the Request panel -> select any language to show the code

3. Missing your favorite library?โ€‹

If you can't find your library, you can: