https://github.com/watchdg/node-http-instance
http
https://github.com/watchdg/node-http-instance
Last synced: over 1 year ago
JSON representation
http
- Host: GitHub
- URL: https://github.com/watchdg/node-http-instance
- Owner: WatchDG
- License: mit
- Created: 2020-12-28T18:29:06.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-17T20:35:01.000Z (about 5 years ago)
- Last Synced: 2025-02-02T11:32:21.178Z (over 1 year ago)
- Language: TypeScript
- Size: 45.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# http-instance
http-instance
```ts
import { HttpInstance } from 'http-instance';
(async () => {
const instance = new HttpInstance({
baseUrl: 'http://google.com'
});
const { status, headers, data } = (await instance.get('/')).unwrap();
})();
```