Skip to main content
Module

x/socket_fetch/mod.ts>TlsDialer

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

Satisfies HTTPS requests by creating a TLS-encrypted TCP connection. CA and servername options can be set on the constructor.

Deno's TLS API became stabilized in Deno v1.16.

Methods

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