proxyman-windows-linux
proxyman-windows-linux copied to clipboard
[Compose] Import from cURL
Description
- One of the useful features of the Compose View
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