http-native
v0.0.24
Published
Provides access to low level HTTP functions (get, post, etc.)
Downloads
15
Maintainers
Readme
http-native
Provides access to low level HTTP functions (get, post, etc.)
Install
npm install http-native
npx cap syncAPI
request(...)
request(options: HTTPRequestOptions) => any| Param | Type |
| ------------- | ----------------------------------------------------------------- |
| options | HTTPRequestOptions |
Returns: any
Interfaces
HTTPRequestOptions
| Prop | Type |
| ------------- | ------------------- |
| url | string |
| method | string |
| body | string |
| query | any |
| headers | any |
HTTPResponse
| Prop | Type |
| ------------ | ------------------- |
| data | string |
| status | number |
| url | string |
