fetchero
Version:
_A type-safe, proxy-based HTTP & GraphQL client for modern applications._
21 lines (20 loc) • 646 B
TypeScript
import { RestProxy, ProxyContext } from '../types';
import { HttpClient } from '../core/http-client';
/**
* REST proxy implementation with caching and performance optimizations
*/
export declare class RestProxyFactory {
private httpClient;
private baseUrl;
private headers;
private static readonly HTTP_METHODS;
constructor(httpClient: HttpClient, baseUrl: string, headers: Record<string, string>);
/**
* Creates REST proxy
*/
createProxy(segments?: string[], ctx?: ProxyContext): RestProxy;
/**
* Optimized HTTP method validation using Set
*/
private isHttpMethod;
}