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

x/pptr/mod.ts>HTTPRequest#resourceType

Headless Chrome Deno API
Latest
method HTTPRequest.prototype.resourceType
Re-export
import { HTTPRequest } from "https://deno.land/x/pptr@1.2.0/mod.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.