Skip to content

Commit

Permalink
working perchance
Browse files Browse the repository at this point in the history
  • Loading branch information
illusionTBA committed Jan 13, 2024
1 parent 5ef5e4f commit 48cdf18
Show file tree
Hide file tree
Showing 7 changed files with 1,661 additions and 14 deletions.
9 changes: 6 additions & 3 deletions examples/fetch.cjs
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());
});
Loading

0 comments on commit 48cdf18

Please sign in to comment.