Skip to content

Commit

Permalink
docs: callback => completion in some places
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed Aug 21, 2015
1 parent 68a98d5 commit d7cf460
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/api/protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ already a handler for `scheme`.

* `scheme` String
* `handler` Function
* `callback` Function
* `completion` Function

Intercepts `scheme` protocol and use `handler` as the protocol's new handler
which sends file as response.
Expand All @@ -129,7 +129,7 @@ which sends file as response.

* `scheme` String
* `handler` Function
* `callback` Function
* `completion` Function

Intercepts `scheme` protocol and use `handler` as the protocol's new handler
which sends String as response.
Expand All @@ -138,7 +138,7 @@ which sends String as response.

* `scheme` String
* `handler` Function
* `callback` Function
* `completion` Function

Intercepts `scheme` protocol and use `handler` as the protocol's new handler
which sends `Buffer` as response.
Expand All @@ -147,14 +147,14 @@ which sends `Buffer` as response.

* `scheme` String
* `handler` Function
* `callback` Function
* `completion` Function

Intercepts `scheme` protocol and use `handler` as the protocol's new handler
which sends a new HTTP request as response.

## protocol.uninterceptProtocol(scheme[, completion])

* `scheme` String
* `callback` Function
* `completion` Function

Remove the interceptor installed for `scheme` and restore its original handler.

0 comments on commit d7cf460

Please sign in to comment.