UNPKG

capacitor-cors-bypass-enhanced

Version:

Enhanced Capacitor plugin for CORS bypass with HTTP/2, HTTP/3, gRPC, GraphQL, file operations, and advanced networking features. Modular TypeScript definitions for better maintainability.

80 lines 2.11 kB
import type { HttpRequestOptions, HttpResponse } from '../definitions'; /** * HTTP Request Manager * Handles all HTTP requests with CORS bypass and interceptor support */ export declare class HttpManager { private proxyServerUrl; constructor(proxyServerUrl: string | null); /** * Set custom proxy server URL */ setProxyServer(url: string): void; /** * Make an HTTP request with CORS bypass and interceptor support */ request(options: HttpRequestOptions, interceptors: Array<{ id: string; interceptor: any; options: any; enabled: boolean; }>): Promise<HttpResponse>; /** * Make a GET request */ get(options: HttpRequestOptions, interceptors: Array<{ id: string; interceptor: any; options: any; enabled: boolean; }>): Promise<HttpResponse>; /** * Make a POST request */ post(options: HttpRequestOptions, interceptors: Array<{ id: string; interceptor: any; options: any; enabled: boolean; }>): Promise<HttpResponse>; /** * Make a PUT request */ put(options: HttpRequestOptions, interceptors: Array<{ id: string; interceptor: any; options: any; enabled: boolean; }>): Promise<HttpResponse>; /** * Make a PATCH request */ patch(options: HttpRequestOptions, interceptors: Array<{ id: string; interceptor: any; options: any; enabled: boolean; }>): Promise<HttpResponse>; /** * Make a DELETE request */ delete(options: HttpRequestOptions, interceptors: Array<{ id: string; interceptor: any; options: any; enabled: boolean; }>): Promise<HttpResponse>; /** * Execute request interceptors */ private executeRequestInterceptors; /** * Execute response interceptors */ private executeResponseInterceptors; /** * Execute error interceptors */ private executeErrorInterceptors; } //# sourceMappingURL=http.d.ts.map