Skip to content

Network

[<Interface>]
type Network =
    static member Create (requestWillBeSent: RequestWillBeSentEventDataType -> unit, dataReceived: DataReceivedEventDataType -> unit, dataSent: obj -> unit, responseReceived: ResponseReceivedEventDataType -> unit, loadingFinished: LoadingFinishedEventDataType -> unit, loadingFailed: LoadingFailedEventDataType -> unit) : Network
    abstract member dataReceived (params: DataReceivedEventDataType) : unit
    abstract member dataSent (params: obj) : unit
    abstract member loadingFailed (params: LoadingFailedEventDataType) : unit
    abstract member loadingFinished (params: LoadingFinishedEventDataType) : unit
    abstract member requestWillBeSent (params: RequestWillBeSentEventDataType) : unit
    abstract member responseReceived (params: ResponseReceivedEventDataType) : unit
AssemblyXantham.Fable.Node
Attributes[<Interface>]

Methods

static member Create (requestWillBeSent: RequestWillBeSentEventDataType -> unit, dataReceived: DataReceivedEventDataType -> unit, dataSent: obj -> unit, responseReceived: ResponseReceivedEventDataType -> unit, loadingFinished: LoadingFinishedEventDataType -> unit, loadingFailed: LoadingFailedEventDataType -> unit) : Network
abstract member dataReceived (params: DataReceivedEventDataType) : unit

This feature is only available with the --experimental-network-inspection flag enabled.

Broadcasts the Network.dataReceived event to connected frontends, or buffers the data if Network.streamResourceContent command was not invoked for the given request yet.

Also enables Network.getResponseBody command to retrieve the response data.

@since v22.17.0

abstract member dataSent (params: obj) : unit

This feature is only available with the --experimental-network-inspection flag enabled.

Enables Network.getRequestPostData command to retrieve the request data.

@since v22.18.0

abstract member loadingFailed (params: LoadingFailedEventDataType) : unit

This feature is only available with the --experimental-network-inspection flag enabled.

Broadcasts the Network.loadingFailed event to connected frontends. This event indicates that HTTP request has failed to load.

@since v22.7.0

abstract member loadingFinished (params: LoadingFinishedEventDataType) : unit

This feature is only available with the --experimental-network-inspection flag enabled.

Broadcasts the Network.loadingFinished event to connected frontends. This event indicates that HTTP request has finished loading.

@since v22.6.0

abstract member requestWillBeSent (params: RequestWillBeSentEventDataType) : unit

This feature is only available with the --experimental-network-inspection flag enabled.

Broadcasts the Network.requestWillBeSent event to connected frontends. This event indicates that the application is about to send an HTTP request.

@since v22.6.0

abstract member responseReceived (params: ResponseReceivedEventDataType) : unit

This feature is only available with the --experimental-network-inspection flag enabled.

Broadcasts the Network.responseReceived event to connected frontends. This event indicates that HTTP response is available.

@since v22.6.0