]> khamidou — GitHub mirrors - electron.git/commitdiff
docs: protocol.RequestHttpJob
authorCheng Zhao <zcbenz@gmail.com>
Wed, 17 Jun 2015 03:32:39 +0000 (11:32 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 17 Jun 2015 03:32:39 +0000 (11:32 +0800)
docs/api/protocol.md

index 181a2e57f733d3e608479a52deea4dfca9a7a9c0..ba62bf301f412340c89356f8c52338452b068d05 100644 (file)
@@ -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: