Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

std/http/mock.ts>mockConn

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function mockConn
import { mockConn } from "https://deno.land/std@0.42.0/http/mock.ts";

Create dummy Deno.Conn object with given base properties

Parameters

optional
base: Partial<Deno.Conn> = [UNSUPPORTED]