File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1- import { HttpResponse } from 'http' ;
21import * as Https from './https.common' ;
32export declare function enableSSLPinning ( options : Https . HttpsSSLPinningOptions ) : void ;
43export declare function disableSSLPinning ( ) : void ;
5- export declare function request ( opts : Https . HttpsRequestOptions ) : Promise < HttpResponse > ;
4+ export declare function request ( opts : Https . HttpsRequestOptions ) : Promise < Https . HttpsResponse > ;
65export * from './https.common' ;
Original file line number Diff line number Diff line change @@ -10,3 +10,10 @@ export interface HttpsRequestOptions extends HttpRequestOptions {
1010 headers ?: Headers ;
1111 content ?: string ;
1212}
13+ export interface HttpsResponse {
14+ headers ?: Headers ;
15+ statusCode ?: number ;
16+ content ?: any ;
17+ reason ?: string ;
18+ reject ?: boolean ;
19+ }
Original file line number Diff line number Diff line change 1- import { HttpResponse } from 'http' ;
21import * as Https from './https.common' ;
32export declare function enableSSLPinning ( options : Https . HttpsSSLPinningOptions ) : void ;
43export declare function disableSSLPinning ( ) : void ;
5- export declare function request ( opts : Https . HttpsRequestOptions ) : Promise < HttpResponse > ;
4+ export declare function request ( opts : Https . HttpsRequestOptions ) : Promise < Https . HttpsResponse > ;
65export * from './https.common' ;
Original file line number Diff line number Diff line change 11{
22 "name" : " nativescript-https" ,
3- "version" : " 1.0.1 " ,
3+ "version" : " 1.0.2 " ,
44 "description" : " Secure HTTP client with SSL pinning for Nativescript - iOS/Android." ,
55 "main" : " https" ,
66 "typings" : " index.d.ts" ,
You can’t perform that action at this time.
0 commit comments