close()
. With
disconnect()
, the browser will continue to process any further response data, but it won't be accessible through the filter. With
close()
, the browser will ignore any response data that hasn't already been passed through to the rendering engine.
You should always call disconnect()
or close()
once you don't need to interact with the response any further.
You can't call this function until after the onstart
event has fired.