Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
method HTTPRequest.prototype.resourceType
import { HTTPRequest } from "https://deno.land/x/pptr@1.2.0/src/HTTPRequest.ts";

Contains the request's resource type as it was perceived by the rendering engine.

Returns

string

one of the following: document, stylesheet, image, media, font, script, texttrack, xhr, fetch, eventsource, websocket, manifest, other.