Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/http/_mock_conn.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.120.0/http/_mock_conn.ts";

Create dummy Deno.Conn object with given base properties.

Parameters

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