Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
doc/plugin-api: add call.__request()
Browse files Browse the repository at this point in the history
  • Loading branch information
skenqbx committed Apr 21, 2015
1 parent d42c887 commit b0b7aff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/plugin-api.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ Registers an interceptor `function(Call, Object, *)` for an event.
### call.\_\_clear()
Removes all registered interceptors.

### call.\_\_request()
Create a request object when no request is pending and a configuration is available. When no configuration is available, a _non-interceptable_ error is emitted.

Returns `true` when a request is pending, otherwise the newly created `request` object.

### Event: 'request'
Emitted one tick after the request object has been created.

Expand Down

0 comments on commit b0b7aff

Please sign in to comment.