Skip to content

ElectronNet.request method

ElectronNet › request

Unofficial

Creates a ClientRequest instance using the provided options which are directly forwarded to the ClientRequest constructor. The net.request method would be used to issue both secure and insecure HTTP requests according to the specified protocol scheme in the options object.

Signature:

request(options: string | ElectronClientRequestConstructorOptions): ElectronClientRequest

Parameters:

Parameter Type Description
options string | ElectronClientRequestConstructorOptions The request options, or the request URL as a string.

Returns: ElectronClientRequestThe created request.