ElectronClientRequestConstructorOptions
Unofficial
Options for constructing a ClientRequest.
Import:
import type { ElectronClientRequestConstructorOptions } from '@obsidian-typings/obsidian-catalyst-latest';Signature:
export interface ElectronClientRequestConstructorOptionsProperties
| Property | Type | Description | |
|---|---|---|---|
| credentials? | 'include' | 'omit' | Can be include or omit. Whether to send credentials with this request. If set to include, credentials from the session associated with the request will be used. If set to omit, credentials will not be sent with the request (and the 'login' event will not be triggered in the event of a 401). This matches the behavior of the fetch option of the same name. If this option is not specified, authentication data from the session will be sent, and cookies will not be sent (unless useSessionCookies is set). | |
| host? | string | The server host provided as a concatenation of the hostname and the port number 'hostname:port'. | |
| hostname? | string | The server host name. | |
| method? | string | The HTTP request method. | |
| origin? | string | The origin URL of the request. | |
| partition? | string | The name of the partition with which the request is associated. The session option supersedes partition. Thus if a session is explicitly specified, partition is ignored. | |
| path? | string | The path part of the request URL. | |
| port? | number | The server's listening port number. | |
| protocol? | string | Can be http: or https:. The protocol scheme in the form 'scheme:'. | |
| redirect? | 'error' | 'follow' | 'manual' | Can be follow, error or manual. The redirect mode for this request. When mode is error, any redirection will be aborted. When mode is manual the redirection will be cancelled unless request.followRedirect is invoked synchronously during the redirect event. | |
| session? | Session | The Session instance with which the request is associated. | |
| url? | string | The request URL. Must be provided in the absolute form with the protocol scheme specified as http or https. | |
| useSessionCookies? | boolean | Whether to send cookies with this request from the provided session. If credentials is specified, this option has no effect. |