Closed lavelle closed 10 years ago
@lavelle You can listen for the beforeMethod
event on the handler, but that needs to be done in a plugin, as plugins are also instantiated per HTTP request, along with the handler.
See https://github.com/mikedeboer/jsDAV/blob/master/lib/DAV/plugins/auth.js#L50 for an example.
Cool that worked thanks for the quick response.
Is there any way to register a callback with JSDAV for the network events? I'd like to run a custom function every time a request is received.