From: Cheng Zhao Date: Wed, 17 Jun 2015 03:32:39 +0000 (+0800) Subject: docs: protocol.RequestHttpJob X-Git-Tag: v0.28.2~7^2~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=1d4190377901ff5d6b462498de884374f1e4e339;p=electron.git docs: protocol.RequestHttpJob --- 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: