UNPKG

fingerprint-me-not

Version:

A powerful Node.js HTTP client with advanced TLS fingerprinting capabilities

39 lines 1.5 kB
import { FingerPrintMeNotException } from './exceptions.js'; import { Response } from './response.js'; import { Session } from './sessions.js'; const DEFAULT_CLIENT = 'chrome_108'; export const FingerPrintMeNotClient = { Session, Response, FingerPrintMeNotException, async get(url, options) { const session = new Session({ clientIdentifier: DEFAULT_CLIENT }); return await session.get(url, options); }, async post(url, options) { const session = new Session({ clientIdentifier: DEFAULT_CLIENT }); return await session.post(url, options); }, async put(url, options) { const session = new Session({ clientIdentifier: DEFAULT_CLIENT }); return await session.put(url, options); }, async patch(url, options) { const session = new Session({ clientIdentifier: DEFAULT_CLIENT }); return await session.patch(url, options); }, async delete(url, options) { const session = new Session({ clientIdentifier: DEFAULT_CLIENT }); return await session.delete(url, options); }, async head(url, options) { const session = new Session({ clientIdentifier: DEFAULT_CLIENT }); return await session.head(url, options); }, async options(url, options) { const session = new Session({ clientIdentifier: DEFAULT_CLIENT }); return await session.options(url, options); } }; export default FingerPrintMeNotClient; //# sourceMappingURL=index.js.map