Skip to main content
Module

x/socket_fetch/mod.ts>AutoDialer

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

Satisfies HTTP/HTTPS requests traditionally using the appropriate dialer. If you need to configure a specific dialer, use it directly instead.

To access UNIX servers, URL-encode the socket path into the host part of an http+unix: URL. For example: http+unix://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/json Note that this URL parsing may break in future versions of Deno.

Properties

private
readonly
tcpDialer: TcpDialer
private
readonly
tlsDialer: TlsDialer

Methods

dial(target: URL): Promise<Deno.Conn>