import { HTTPRequest } from "https://deno.land/x/pptr@1.2.0/mod.ts";
Represents an HTTP request sent by a page.
Constructors
new
HTTPRequest(client: CDPSession,
frame: Frame,
interceptionId: string,
allowInterception: boolean,
redirectChain: HTTPRequest[],
Properties
private
_client: CDPSessionprivate
_frame: Frame_redirectChain: HTTPRequest[]
_response: HTTPResponse | null
Methods
continue(overrides?: ContinueRequestOverrides): Promise<void>
Continues request with optional request overrides.
failure(): { errorText: string; } | null
Access information about the request's failure.
headers(): Record<string, string>
method(): string
postData(): string | undefined
redirectChain(): HTTPRequest[]
resourceType(): string
Contains the request's resource type as it was perceived by the rendering engine.
respond(response: ResponseForRequest): Promise<void>
Fulfills a request with the given response.
response(): HTTPResponse | null
url(): string