httprequest_npm
TypeScript icon, indicating that this package has built-in type declarations

1.0.22 • Public • Published

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: "test@gmail.com", password: "12345", } );

Readme

Keywords

none

Package Sidebar

Install

npm i httprequest_npm

Weekly Downloads

1

Version

1.0.22

License

ISC

Unpacked Size

4.24 kB

Total Files

7

Last publish

Collaborators

  • vitalii.melish.16