Skip to main content
Module

x/socket_fetch/mod.ts

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

Classes

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

Satisfies HTTP requests by creating a basic plaintext TCP connection.

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

Satisfies HTTP requests by creating a plaintext UNIX Stream socket.

Variables

Perform a fetch using a default, unconfigured dialer and socket pool

Functions

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.

Interfaces

API to help satisfy HTTP requests by providing network connections.