From d7cf4609185816c7ac8e520968ab4b726a533c95 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 21 Aug 2015 20:16:56 +0800 Subject: [PATCH] docs: callback => completion in some places --- docs/api/protocol.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/api/protocol.md b/docs/api/protocol.md index a256bf30a73..be0cad0d5de 100644 --- a/docs/api/protocol.md +++ b/docs/api/protocol.md @@ -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. @@ -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. @@ -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. @@ -147,7 +147,7 @@ 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. @@ -155,6 +155,6 @@ 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.