UNPKG

@vectry/node

Version:

Node.js SDK for the Vectry Analytics, providing transport and context integration.

17 lines (16 loc) 564 B
import { ITransport, VectryConfig } from '@vectry/js-core'; /** * HttpTransport * * Concrete transport for Node.js environments using Axios. */ export declare class HttpTransport implements ITransport { private client; constructor(config: Partial<VectryConfig>); private request; get(path: string, payload?: any): Promise<any>; post(path: string, payload?: any): Promise<any>; put(path: string, payload?: any): Promise<any>; patch(path: string, payload?: any): Promise<any>; delete(path: string, payload?: any): Promise<any>; }