Skip to content

ElectronHeadersReceivedResponse

Unofficial

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

Import:

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

Signature:

export interface ElectronHeadersReceivedResponse

Properties

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