@logicwind/react-native-tvos-ssl-pinning
Version:
React-native TVOS plugin to support ssl pinning.
19 lines • 590 B
TypeScript
export interface PinningOptions {
method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
headers?: Record<string, string>;
body?: string;
timeoutInterval?: number;
sslPinning?: {
certs: string[];
};
[key: string]: any;
}
export interface PinningResponse {
status: number;
headers: Record<string, string>;
body: string;
[key: string]: any;
}
export declare function getAvailableCertificates(): string[];
export declare function fetchDataWithPinning(url: string, options: PinningOptions): PinningResponse;
//# sourceMappingURL=index.d.ts.map