WebRequest Type
⚠ Process Availability: Main ✔ | Renderer ❌ | Utility ❌ | Exported ❌
Instance members
| Instance member |
Description
|
Full Usage:
this.onBeforeRedirect (?filter, ?listener)
Parameters:
WebRequestFilter
?listener : Option<(Details -> unit)>
Modifiers: inline |
The listener will be called with listener(details) when a server initiated redirect is about to occur.
|
Full Usage:
this.onBeforeRequest (?filter, ?listener)
Parameters:
WebRequestFilter
?listener : Option<(Details * Response -> unit -> unit)>
Modifiers: inline |
The listener will be called with listener(details, callback) when a request is about to occur.The uploadData is an array of UploadData objects.The callback has to be called with an response object.Some examples of valid urls:
|
Full Usage:
this.onBeforeSendHeaders (?filter, ?listener)
Parameters:
WebRequestFilter
?listener : Option<(Details * BeforeSendResponse -> unit -> unit)>
Modifiers: inline |
The listener will be called with listener(details, callback) before sending an HTTP request, once the request headers are available. This may occur after a TCP connection is made to the server, but before any http data is sent.The callback has to be called with a response object.
|
Full Usage:
this.onCompleted (?filter, ?listener)
Parameters:
WebRequestFilter
?listener : Option<(Details -> unit)>
Modifiers: inline |
The listener will be called with listener(details) when a request is completed.
|
Full Usage:
this.onErrorOccurred (?filter, ?listener)
Parameters:
WebRequestFilter
?listener : Option<(Details -> unit)>
Modifiers: inline |
The listener will be called with listener(details) when an error occurs.
|
Full Usage:
this.onHeadersReceived (?filter, ?listener)
Parameters:
WebRequestFilter
?listener : Option<(Details * HeadersReceivedResponse -> unit -> unit)>
Modifiers: inline |
The listener will be called with listener(details, callback) when HTTP response headers of a request have been received.The callback has to be called with a response object.
|
Full Usage:
this.onResponseStarted (?filter, ?listener)
Parameters:
WebRequestFilter
?listener : Option<(Details -> unit)>
Modifiers: inline |
The listener will be called with listener(details) when first byte of the response body is received. For HTTP requests, this means that the status line and response headers are available.
|
Full Usage:
this.onSendHeaders (?filter, ?listener)
Parameters:
WebRequestFilter
?listener : Option<(Details -> unit)>
Modifiers: inline |
The listener will be called with listener(details) just before a request is going to be sent to the server, modifications of previous onBeforeSendHeaders response are visible by the time this listener is fired.
|
fable-electron-docs-api