capacitor-native-http
v4.3.2
Published
Plugin capacitor para requisições nativas
Downloads
482
Maintainers
Readme
capacitor-native-http
Plugin capacitor para requisições nativas
Install
npm install capacitor-native-http
npx cap syncAPI
request(...)
request(options: RequestParams) => Promise<{ data: any; }>| Param | Type |
| ------------- | ------------------------------------------------------- |
| options | RequestParams |
Returns: Promise<{ data: any; }>
initialize(...)
initialize(options: InitializeParams) => Promise<{ data: any; }>| Param | Type |
| ------------- | ------------------------------------------------------------- |
| options | InitializeParams |
Returns: Promise<{ data: any; }>
clearCookie()
clearCookie() => Promise<any>Returns: Promise<any>
Interfaces
RequestParams
| Prop | Type |
| ------------- | ------------------- |
| method | string |
| url | string |
| params | any |
| data | any |
| headers | any |
InitializeParams
| Prop | Type |
| --------------------- | ----------------------------- |
| hostname | string |
| certPath | string |
| timeout | number |
| certPassMtls | string |
| certPathMtls | string |
| saveLoginCookie | boolean |
| mtlsCerts | MtlsCertConfig[] |
MtlsCertConfig
| Prop | Type |
| ---------------- | ------------------- |
| host | string |
| certPath | string |
| certPass | string |
| certFolder | string |
