forked from tomphttp/bare-client
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5ef5e4f
commit 48cdf18
Showing
7 changed files
with
1,661 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
/* eslint-disable @typescript-eslint/no-var-requires */ | ||
const createBareClient = require('@tomphttp/bare-client'); | ||
const createBareClient = require('../dist/BareClient.cjs'); | ||
|
||
createBareClient('https://uv.holyubofficial.net/').then(async (client) => { | ||
const response = await client.fetch('https://www.google.com/'); | ||
createBareClient('http://localhost:3000/').then(async (client) => { | ||
const response = await client.fetch('https://www.google.com/', { | ||
proxyIp: 'testIP', | ||
proxyPort: '3000', | ||
}); | ||
|
||
console.log(response.status, await response.text()); | ||
}); |
Oops, something went wrong.