proxyman-windows-linux icon indicating copy to clipboard operation
proxyman-windows-linux copied to clipboard

[Compose] Import from cURL

Open NghiaTranUIT opened this issue 8 months ago • 0 comments

Description

  • One of the useful features of the Compose View
Screenshot 2024-06-07 at 9 06 58 AM

Acceptance Criteria

  • [x] Parse https://github.com/ProxymanApp/curl-to-json-swift to ElectronJS. Please note that this repo is designed for JavascriptCore (Swift), so some logic is unnecessary. For example: ElectronJS Version doesn't need to use WHATWGURL. We can use URL from NodeJS: https://github.com/ProxymanApp/curl-to-json-swift/blob/ba005a5c42b0fdf6b6a6c8695717a37e8749ecef/src/parse-json.js#L4
  • [x] Able to parse the cURL (Try copy from Postman / Proxyman) and create a Compose Request with correct, header, URL, Body (JSON, Form, Text), Auth, Cookie
  • [x] Ping @NghiaTranUIT to port CURLParserTests.swift to test some unit tests

NghiaTranUIT avatar Jun 07 '24 02:06 NghiaTranUIT