add modern version of request construction

This commit is contained in:
2025-04-03 06:36:48 +00:00
parent 6e2c63fe1b
commit 96820090d4
18 changed files with 8189 additions and 6206 deletions

View File

@ -1,6 +1,6 @@
import { tap, expect, expectAsync } from '@pushrocks/tapbundle';
import * as smartrequest from '../ts/index.js';
import * as smartrequest from '../ts/legacy/index.js';
tap.test('should request a html document over https', async () => {
await expectAsync(smartrequest.getJson('https://encrypted.google.com/')).toHaveProperty('body');