UNPKG

@foxxie/centra

Version:

A fork of Centra to support shortcut methods in Foxxie, and with typescript support.

7 lines (6 loc) 319 B
import { CentraRequest } from './model/CentraRequest'; export declare const centra: (url: string | URL, method?: HttpMethod) => CentraRequest; export interface ResOptions { maxBuffer: number; } export declare type HttpMethod = 'OPTIONS' | 'CONNECT' | 'DELETE' | 'TRACE' | 'HEAD' | 'POST' | 'PUT' | 'GET' | 'PATCH';