capacitor-native-http
v4.0.23
Published
Plugin capacitor para requisições nativas
Downloads
136
Maintainers
Readme
capacitor-native-http
Plugin capacitor para requisições nativas
Install
npm install capacitor-native-http
npx cap sync
API
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 |