httprequest_npm
v1.0.22
Published
## Syntax:
Downloads
3
Readme
This is a wrapper for HTTP requests based on Axios.
Syntax:
import axios, { AxiosRequestConfig, AxiosResponse } from "axios";
httprequest_npm( method: string, host: string, path: string, args?: object, config?: AxiosRequestConfig )
Example:
const response = await httprequest_npm(
"post",
http://localhost:3000
,
"user/login",
{
email: "[email protected]",
password: "12345",
}
);