Skip to main content
Module

x/socket_fetch/mod.ts>fetchUsing

Remake of fetch() using Deno sockets, useful for niche usecases such as UNIX domain sockets
function fetchUsing
import { fetchUsing } from "https://deno.land/x/socket_fetch@v0.1/mod.ts";

Perform a one-off fetch using the given dialer. This is useful for testing and code samples, but cannot reuse connections. Instantiate a Client instance instead if you will be making multiple requests.

Parameters

dialer: Dialer
input: string | Request | URL
optional
opts: RequestInit