From 1d4190377901ff5d6b462498de884374f1e4e339 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 17 Jun 2015 11:32:39 +0800 Subject: [PATCH] docs: protocol.RequestHttpJob --- docs/api/protocol.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/api/protocol.md b/docs/api/protocol.md index 181a2e57..ba62bf30 100644 --- a/docs/api/protocol.md +++ b/docs/api/protocol.md @@ -84,12 +84,21 @@ Create a request job which sends a string as response. Create a request job which sends a buffer as response. +## Class: protocol.RequestHttpJob(options) + +* `options` Object + * `url` String + * `method` String - Default is `GET` + * `referrer` String + +Send a request to `url` and pipe the response back. + ## Class: protocol.RequestErrorJob(code) * `code` Integer Create a request job which sets appropriate network error message to console. -Default message is `net::ERR_NOT_IMPLEMENTED`. Code should be in the following +Default message is `net::ERR_NOT_IMPLEMENTED`. Code should be in the following range. * Ranges: -- 2.43.0