Skip to content

ElectronHeadersReceivedResponse

Unofficial

Response object returned by an onHeadersReceived web-request listener callback.

Import:

import type { ElectronHeadersReceivedResponse } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface ElectronHeadersReceivedResponse

Properties

Property Type Description
cancel? boolean Whether to cancel the request.
responseHeaders? Record<string, string | string[]> When provided, the server is assumed to have responded with these headers.
statusLine? string Should be provided when overriding responseHeaders to change header status otherwise original response header's status will be used.