voca-http
Version:
A lightweight and flexible HTTP client for the browser and node.js
17 lines (16 loc) • 360 B
TypeScript
import { HttpMethod } from '../types';
/**
* Base class for HTTP functionality
*/
export declare class HttpBase {
private httpMethods;
constructor();
/**
* Gets the global environment (browser or node)
*/
getEnv(): Window | typeof globalThis;
/**
* Gets available HTTP methods
*/
getHttpMethods(): HttpMethod[];
}