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

std/node/https.ts>request

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

Makes a request to an https server.

Parameters

url: string | URL
optional
cb: (res: IncomingMessage) => void

Returns

HttpsClientRequest

Parameters

opts: HttpsRequestOptions
optional
cb: (res: IncomingMessage) => void

Returns

HttpsClientRequest

Parameters

url: string | URL
opts: HttpsRequestOptions
optional
cb: (res: IncomingMessage) => void

Returns

HttpsClientRequest