1.0.2 • Published 2 years ago

@edgematrixjs/http v1.0.2

Weekly downloads
-
License
MPL-2.0
Repository
-
Last release
2 years ago

@edgematrixjs/http

This project used in "axios": "^1.3.4"

Provide postJSON methods for @edgematrixjs/rtc

Dependencies

"axios": "^1.3.4"

INSTALL

npm install @edgematrixjs/http

USAGE IN RTC

import { Http } from '@edgematrixjs/http';
import { RTC } from '@edgematrixjs/rtc';
const rtc = new RTC({ debug: false });
const chainId = 2;
const privateKey = '{privatekey}';
const network = 'https://oregon.edgematrix.xyz';
const http = new Http({ baseURL: network });
rtc.createSubject(chainId, privateKey, http);

API

postJSON(options: AxiosRequestConfig) - Similar to Axios

post(options: AxiosRequestConfig) - Similar to Axios

get(options: AxiosRequestConfig) - Similar to Axios

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago