Readonly
deliveryReturns the event target where OnDataAvailable events will be dispatched.
This is only valid after OnStartRequest has been called. Any time before
that point, the value may be changed by retargetDeliveryTo
calls.
Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
Called to retarget delivery of OnDataAvailable to another thread. Should only be called before AsyncOpen for nsIWebsocketChannels, or during OnStartRequest for nsIChannels. Note: For nsIChannels, OnStartRequest and OnStopRequest will still be delivered on the main thread.
New event target, e.g. thread or threadpool.
Note: no return value is given. If the retargeting cannot be handled, normal delivery to the main thread will continue. As such, listeners should be ready to deal with OnDataAvailable on either the main thread or the new target thread.
Generated using TypeDoc
nsIThreadRetargetableRequest
Should be implemented by requests that support retargeting delivery of data off the main thread.