https://github.com/v-core9/__v_req
https://github.com/v-core9/__v_req
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/v-core9/__v_req
- Owner: V-core9
- Created: 2021-09-27T18:39:22.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-09-27T19:53:19.000Z (over 3 years ago)
- Last Synced: 2025-01-17T15:16:38.016Z (4 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
[1]- Installing
[2]- Usage
[3]- Output
[4]- Requirements + Notes
# [1]> Installing___ [ adding to dependencies ]"dependencies" : {
"v_req": "https://github.com/V-core9/__v_req"
}# [2]> Demo use__ [ how to make a request using it ]
const vReq = require('v_req')const demoGetGoogle = {
options: {
hostname: 'www.google.com',
port: 443,
path: '/',
method: 'GET',
headers: {
'Content-Type': 'text/html'
}
}
};vReq(demoGetGoogle);
# [3]> Output ___[ request response ]
Host: www.google.com
Status Code: 200
Path: /
Method: GET
Port: 443
keepAliveMsecs: 1000
keepAlive: false# [4]> Requirements__ [ must haves ]
- [Node HTTPS Module](https://nodejs.org/api/https.html)
> NOTE: Well this is using node HTTPS module to make requests. I'm still not exactly sure how this will work with something like webpack...or web browser loading of it. Probably not so I might adjust it to use fetch for it when loading for web/exporting.