curlconverter
Version:
convert curl commands to Python, JavaScript, Go, PHP and more
15 lines (14 loc) • 396 B
TypeScript
import { Word } from "../shell/Word.js";
import type { GlobalConfig, OperationConfig } from "./opts.js";
export interface Curl_URL {
scheme: Word;
auth?: Word;
user?: Word;
password?: Word;
host: Word;
port: Word;
path: Word;
query: Word;
fragment: Word;
}
export declare function parseurl(global_: GlobalConfig, config: OperationConfig, url: Word): Curl_URL;