UNPKG

got-tls

Version:

A node websocket api version of https://github.com/Carcraftz/TLS-Fingerprint-API to spoof TLS fingerprint to prevent your requests from being fingerprinted. > im fairly new to golang / websockets pull requests are welcome

18 lines (17 loc) 1.01 kB
import type { RequestOptions, ResponseData } from "./interface"; import { EventEmitter } from "events"; export declare const Server: { connect: () => Promise<void>; }; export declare const got: { (method: string, url: string, options: RequestOptions, responseEmitter?: EventEmitter | null, redirects?: number): Promise<ResponseData>; head(url: string, options: RequestOptions): Promise<ResponseData>; get(url: string, options: RequestOptions): Promise<ResponseData>; post(url: string, options: RequestOptions): Promise<ResponseData>; put(url: string, options: RequestOptions): Promise<ResponseData>; delete(url: string, options: RequestOptions): Promise<ResponseData>; trace(url: string, options: RequestOptions): Promise<ResponseData>; options(url: string, options: RequestOptions): Promise<ResponseData>; connect(url: string, options: RequestOptions): Promise<ResponseData>; patch(url: string, options: RequestOptions): Promise<ResponseData>; };