Skip to main content
Module

x/socket_fetch/dialers.ts>UnixDialer

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

Satisfies HTTP requests by creating a plaintext UNIX Stream socket.

A socket location MUST be specified, and will be used for all connections. Note that the URL given for the request will still be used for the Host header.

NOTE: UNIX domain sockets still require --unstable as of Deno v1.16!

Constructors

new
UnixDialer(socketPath: string)