/
githubmirror
/
deno
Обзор
Документация
Войти
/
githubmirror
/
deno
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/specs/run/045_proxy/programmatic_proxy_client.ts
16 строк
364 B
Kenta Moriuchi
chore: Happy New Year 2026 (#31748)
08 янв 2026, 18:28
Не верифицирован
08 янв 2026, 18:28
8193cf9
Код
Авторство
О чём код?
// Copyright 2018-2026 the Deno authors. MIT license. const client = Deno.createHttpClient({ proxy: { url: "http://localhost:4555", basicAuth: { username: "username", password: "password" }, }, }); const res = await fetch( "http://localhost:4545/run/045_mod.ts", { client }, ); console.log(`Response http: ${await res.text()}`); client.close();