diff options
Diffstat (limited to 'docs/en/gun')
-rw-r--r-- | docs/en/gun/1.0/guide/connect/index.html | 1 | ||||
-rw-r--r-- | docs/en/gun/1.0/guide/http.asciidoc | 21 | ||||
-rw-r--r-- | docs/en/gun/1.0/guide/http/index.html | 26 | ||||
-rw-r--r-- | docs/en/gun/1.0/guide/index.html | 1 | ||||
-rw-r--r-- | docs/en/gun/1.0/guide/introduction/index.html | 1 | ||||
-rw-r--r-- | docs/en/gun/1.0/guide/protocols.asciidoc | 2 | ||||
-rw-r--r-- | docs/en/gun/1.0/guide/protocols/index.html | 3 | ||||
-rw-r--r-- | docs/en/gun/1.0/guide/start/index.html | 1 | ||||
-rw-r--r-- | docs/en/gun/1.0/guide/websocket.asciidoc | 4 | ||||
-rw-r--r-- | docs/en/gun/1.0/guide/websocket/index.html | 4 | ||||
-rw-r--r-- | docs/en/gun/1.0/manual/gun/index.html | 164 | ||||
-rw-r--r-- | docs/en/gun/1.0/manual/gun_app/index.html | 1 | ||||
-rw-r--r-- | docs/en/gun/1.0/manual/index.html | 1 |
13 files changed, 192 insertions, 38 deletions
diff --git a/docs/en/gun/1.0/guide/connect/index.html b/docs/en/gun/1.0/guide/connect/index.html index 4ace37e6..ed3b4970 100644 --- a/docs/en/gun/1.0/guide/connect/index.html +++ b/docs/en/gun/1.0/guide/connect/index.html @@ -314,7 +314,6 @@ when the connection has been closed.</p></div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> - <script src="/js/bootstrap-carousel.js"></script> <script src="/js/bootstrap-dropdown.js"></script> <script src="/js/custom.js"></script> </body> diff --git a/docs/en/gun/1.0/guide/http.asciidoc b/docs/en/gun/1.0/guide/http.asciidoc index 465a4c53..e856fb18 100644 --- a/docs/en/gun/1.0/guide/http.asciidoc +++ b/docs/en/gun/1.0/guide/http.asciidoc @@ -45,7 +45,7 @@ handling of responses will be explained further on. ==== GET and HEAD -Use `gun:get/{2,3}` to request a resource. +Use `gun:get/{2,3,4}` to request a resource. .GET "/organizations/ninenines" @@ -64,7 +64,7 @@ Note that the list of headers has the field name as a binary. The field value is iodata, which is either a binary or an iolist. -Use `gun:head/{2,3}` if you don't need the response body. +Use `gun:head/{2,3,4}` if you don't need the response body. .HEAD "/organizations/ninenines" @@ -101,7 +101,7 @@ desirable. The request body of a PATCH method may be a partial representation or a list of instructions on how to update the resource. -The `gun:post/4`, `gun:put/4` and `gun:patch/4` functions +The `gun:post/{4,5}`, `gun:put/{4,5}` and `gun:patch/{4,5}` functions take a body as their fourth argument. These functions do not require any body-specific header to be set, although it is always recommended to set the content-type header. @@ -171,7 +171,7 @@ do_sendfile(ConnPid, StreamRef, IoDevice) -> ==== DELETE -Use `gun:delete/{2,3}` to delete a resource. +Use `gun:delete/{2,3,4}` to delete a resource. .DELETE "/organizations/ninenines" @@ -211,7 +211,7 @@ StreamRef = gun:options(ConnPid, "*"). ==== Requests with an arbitrary method -The `gun:request/{4,5}` function can be used to send requests +The `gun:request/{4,5,6}` function can be used to send requests with a configurable method name. It is mostly useful when you need a method that Gun does not understand natively. @@ -360,3 +360,14 @@ gun:flush(ConnPid). [source,erlang] gun:flush(StreamRef). + +=== Redirecting responses to a different process + +Gun allows you to specify which process will handle responses +to a request via the `reply_to` request option. + +.GET "/organizations/ninenines" to a different process + +[source,erlang] +StreamRef = gun:get(ConnPid, "/organizations/ninenines", [], + #{reply_to => Pid}). diff --git a/docs/en/gun/1.0/guide/http/index.html b/docs/en/gun/1.0/guide/http/index.html index 9b345ae1..2f3aadb3 100644 --- a/docs/en/gun/1.0/guide/http/index.html +++ b/docs/en/gun/1.0/guide/http/index.html @@ -112,7 +112,7 @@ header if it has not been provided in the request arguments.</p></div> handling of responses will be explained further on.</p></div>
<div class="sect3">
<h4 id="_get_and_head">GET and HEAD</h4>
-<div class="paragraph"><p>Use <code>gun:get/{2,3}</code> to request a resource.</p></div>
+<div class="paragraph"><p>Use <code>gun:get/{2,3,4}</code> to request a resource.</p></div>
<div class="listingblock">
<div class="title">GET "/organizations/ninenines"</div>
<div class="content"><!-- Generator: GNU source-highlight 3.1.8
@@ -133,7 +133,7 @@ http://www.gnu.org/software/src-highlite --> <div class="paragraph"><p>Note that the list of headers has the field name as a binary.
The field value is iodata, which is either a binary or an
iolist.</p></div>
-<div class="paragraph"><p>Use <code>gun:head/{2,3}</code> if you don’t need the response body.</p></div>
+<div class="paragraph"><p>Use <code>gun:head/{2,3,4}</code> if you don’t need the response body.</p></div>
<div class="listingblock">
<div class="title">HEAD "/organizations/ninenines"</div>
<div class="content"><!-- Generator: GNU source-highlight 3.1.8
@@ -168,7 +168,7 @@ request body. The PATCH method can be used when this is not desirable. The request body of a PATCH method may be a partial
representation or a list of instructions on how to update the
resource.</p></div>
-<div class="paragraph"><p>The <code>gun:post/4</code>, <code>gun:put/4</code> and <code>gun:patch/4</code> functions
+<div class="paragraph"><p>The <code>gun:post/{4,5}</code>, <code>gun:put/{4,5}</code> and <code>gun:patch/{4,5}</code> functions
take a body as their fourth argument. These functions do
not require any body-specific header to be set, although
it is always recommended to set the content-type header.
@@ -237,7 +237,7 @@ http://www.gnu.org/software/src-highlite --> </div>
<div class="sect3">
<h4 id="_delete">DELETE</h4>
-<div class="paragraph"><p>Use <code>gun:delete/{2,3}</code> to delete a resource.</p></div>
+<div class="paragraph"><p>Use <code>gun:delete/{2,3,4}</code> to delete a resource.</p></div>
<div class="listingblock">
<div class="title">DELETE "/organizations/ninenines"</div>
<div class="content"><!-- Generator: GNU source-highlight 3.1.8
@@ -286,7 +286,7 @@ http://www.gnu.org/software/src-highlite --> </div>
<div class="sect3">
<h4 id="_requests_with_an_arbitrary_method">Requests with an arbitrary method</h4>
-<div class="paragraph"><p>The <code>gun:request/{4,5}</code> function can be used to send requests
+<div class="paragraph"><p>The <code>gun:request/{4,5,6}</code> function can be used to send requests
with a configurable method name. It is mostly useful when you
need a method that Gun does not understand natively.</p></div>
<div class="listingblock">
@@ -444,6 +444,21 @@ http://www.gnu.org/software/src-highlite --> <pre><tt><span style="font-weight: bold"><span style="color: #000000">gun:flush</span></span>(<span style="color: #009900">StreamRef</span>)<span style="color: #990000">.</span></tt></pre></div></div>
</div>
</div>
+<div class="sect1">
+<h2 id="_redirecting_responses_to_a_different_process">Redirecting responses to a different process</h2>
+<div class="sectionbody">
+<div class="paragraph"><p>Gun allows you to specify which process will handle responses
+to a request via the <code>reply_to</code> request option.</p></div>
+<div class="listingblock">
+<div class="title">GET "/organizations/ninenines" to a different process</div>
+<div class="content"><!-- Generator: GNU source-highlight 3.1.8
+by Lorenzo Bettini
+http://www.lorenzobettini.it
+http://www.gnu.org/software/src-highlite -->
+<pre><tt><span style="color: #009900">StreamRef</span> <span style="color: #990000">=</span> <span style="font-weight: bold"><span style="color: #000000">gun:get</span></span>(<span style="color: #009900">ConnPid</span>, <span style="color: #FF0000">"/organizations/ninenines"</span>, [],
+ #{<span style="color: #0000FF">reply_to</span> <span style="color: #990000">=></span> <span style="color: #009900">Pid</span>})<span style="color: #990000">.</span></tt></pre></div></div>
+</div>
+</div>
@@ -527,7 +542,6 @@ http://www.gnu.org/software/src-highlite --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> - <script src="/js/bootstrap-carousel.js"></script> <script src="/js/bootstrap-dropdown.js"></script> <script src="/js/custom.js"></script> </body> diff --git a/docs/en/gun/1.0/guide/index.html b/docs/en/gun/1.0/guide/index.html index 9348953a..3b22fb4d 100644 --- a/docs/en/gun/1.0/guide/index.html +++ b/docs/en/gun/1.0/guide/index.html @@ -165,7 +165,6 @@ <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> - <script src="/js/bootstrap-carousel.js"></script> <script src="/js/bootstrap-dropdown.js"></script> <script src="/js/custom.js"></script> </body> diff --git a/docs/en/gun/1.0/guide/introduction/index.html b/docs/en/gun/1.0/guide/introduction/index.html index 5dfc3d5f..8b1ae1c4 100644 --- a/docs/en/gun/1.0/guide/introduction/index.html +++ b/docs/en/gun/1.0/guide/introduction/index.html @@ -182,7 +182,6 @@ names.</p></div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> - <script src="/js/bootstrap-carousel.js"></script> <script src="/js/bootstrap-dropdown.js"></script> <script src="/js/custom.js"></script> </body> diff --git a/docs/en/gun/1.0/guide/protocols.asciidoc b/docs/en/gun/1.0/guide/protocols.asciidoc index 2180c5b4..5e3b273e 100644 --- a/docs/en/gun/1.0/guide/protocols.asciidoc +++ b/docs/en/gun/1.0/guide/protocols.asciidoc @@ -10,7 +10,7 @@ sends a request, the server sends back a response. Gun provides convenience functions for performing GET, HEAD, OPTIONS, POST, PATCH, PUT, and DELETE requests. All these -functions are aliases of `gun:request/{4,5}` for each respective +functions are aliases of `gun:request/{4,5,6}` for each respective methods. Gun also provides a `gun:data/4` function for streaming the request body. diff --git a/docs/en/gun/1.0/guide/protocols/index.html b/docs/en/gun/1.0/guide/protocols/index.html index f2ac3780..2bdbfa3f 100644 --- a/docs/en/gun/1.0/guide/protocols/index.html +++ b/docs/en/gun/1.0/guide/protocols/index.html @@ -78,7 +78,7 @@ operations available to them.</p></div> sends a request, the server sends back a response.</p></div>
<div class="paragraph"><p>Gun provides convenience functions for performing GET, HEAD,
OPTIONS, POST, PATCH, PUT, and DELETE requests. All these
-functions are aliases of <code>gun:request/{4,5}</code> for each respective
+functions are aliases of <code>gun:request/{4,5,6}</code> for each respective
methods. Gun also provides a <code>gun:data/4</code> function for streaming
the request body.</p></div>
<div class="paragraph"><p>Gun will send a <code>gun_response</code> message for every response
@@ -405,7 +405,6 @@ cellspacing="0" cellpadding="4"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> - <script src="/js/bootstrap-carousel.js"></script> <script src="/js/bootstrap-dropdown.js"></script> <script src="/js/custom.js"></script> </body> diff --git a/docs/en/gun/1.0/guide/start/index.html b/docs/en/gun/1.0/guide/start/index.html index 2f84cfe9..3505a740 100644 --- a/docs/en/gun/1.0/guide/start/index.html +++ b/docs/en/gun/1.0/guide/start/index.html @@ -224,7 +224,6 @@ between the elements of the list.</p></div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> - <script src="/js/bootstrap-carousel.js"></script> <script src="/js/bootstrap-dropdown.js"></script> <script src="/js/custom.js"></script> </body> diff --git a/docs/en/gun/1.0/guide/websocket.asciidoc b/docs/en/gun/1.0/guide/websocket.asciidoc index 4869a2e4..f99dea70 100644 --- a/docs/en/gun/1.0/guide/websocket.asciidoc +++ b/docs/en/gun/1.0/guide/websocket.asciidoc @@ -64,6 +64,10 @@ after 1000 -> exit(timeout) end. +Note that you shouldn't use the `reply_to` request option +for connections you plan to upgrade, because only the +owner of the connection will receive messages about it. + === Sending data Once the Websocket upgrade has completed successfully, you no diff --git a/docs/en/gun/1.0/guide/websocket/index.html b/docs/en/gun/1.0/guide/websocket/index.html index 44ec4277..fb0a01bb 100644 --- a/docs/en/gun/1.0/guide/websocket/index.html +++ b/docs/en/gun/1.0/guide/websocket/index.html @@ -133,6 +133,9 @@ http://www.gnu.org/software/src-highlite --> <span style="font-weight: bold"><span style="color: #0000FF">after</span></span> <span style="color: #993399">1000</span> <span style="color: #990000">-></span>
<span style="font-weight: bold"><span style="color: #000080">exit</span></span>(<span style="color: #FF6600">timeout</span>)
<span style="font-weight: bold"><span style="color: #0000FF">end</span></span><span style="color: #990000">.</span></tt></pre></div></div>
+<div class="paragraph"><p>Note that you shouldn’t use the <code>reply_to</code> request option
+for connections you plan to upgrade, because only the
+owner of the connection will receive messages about it.</p></div>
</div>
</div>
<div class="sect1">
@@ -267,7 +270,6 @@ message.</p></div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> - <script src="/js/bootstrap-carousel.js"></script> <script src="/js/bootstrap-dropdown.js"></script> <script src="/js/custom.js"></script> </body> diff --git a/docs/en/gun/1.0/manual/gun/index.html b/docs/en/gun/1.0/manual/gun/index.html index 332b3b30..97314cd9 100644 --- a/docs/en/gun/1.0/manual/gun/index.html +++ b/docs/en/gun/1.0/manual/gun/index.html @@ -92,6 +92,14 @@ HTTP or Websocket.</p></div> <div class="paragraph"><p>The following keys are defined:</p></div>
<div class="dlist"><dl>
<dt class="hdlist1">
+connect_timeout ⇒ timeout()
+</dt>
+<dd>
+<p>
+ Connection timeout. Defaults to <code>infinity</code>.
+</p>
+</dd>
+<dt class="hdlist1">
http_opts ⇒ http_opts()
</dt>
<dd>
@@ -193,6 +201,18 @@ keepalive ⇒ pos_integer() </p>
</dd>
<dt class="hdlist1">
+transform_header_name ⇒ funLowercaseName :: binary( → TransformedName :: binary()) | undefined
+</dt>
+<dd>
+<p>
+ A function that will be applied to all header names before they
+ are sent to the server. Gun assumes that all header names are in
+ lower case. This function is useful if you, for example, need to
+ re-case header names in the event that the server incorrectly
+ considers header name case to be significant.
+</p>
+</dd>
+<dt class="hdlist1">
version ⇒ <em>HTTP/1.1</em> | <em>HTTP/1.0</em>
</dt>
<dd>
@@ -203,6 +223,21 @@ version ⇒ <em>HTTP/1.1</em> | <em>HTTP/1.0</em> </dl></div>
</div>
<div class="sect2">
+<h3 id="_req_opts_map">req_opts() = map()</h3>
+<div class="paragraph"><p>Configuration for a particular request.</p></div>
+<div class="paragraph"><p>The following keys are defined:</p></div>
+<div class="dlist"><dl>
+<dt class="hdlist1">
+reply_to ⇒ pid()
+</dt>
+<dd>
+<p>
+ The pid of a process that is responsible for the response handling.
+</p>
+</dd>
+</dl></div>
+</div>
+<div class="sect2">
<h3 id="_spdy_opts_map">spdy_opts() = map()</h3>
<div class="paragraph"><p>Configuration for the SPDY protocol.</p></div>
<div class="paragraph"><p>The following keys are defined:</p></div>
@@ -656,11 +691,15 @@ The pid of the Gun connection process. effectively closed.</p></div>
</div>
<div class="sect2">
-<h3 id="_delete_connpid_path_8594_delete_connpid_path">delete(ConnPid, Path) → delete(ConnPid, Path, [])</h3>
-<div class="paragraph"><p>Alias of <code>gun:delete/3</code>.</p></div>
+<h3 id="_delete_connpid_path_8594_delete_connpid_path">delete(ConnPid, Path) → delete(ConnPid, Path, [], #{})</h3>
+<div class="paragraph"><p>Alias of <code>gun:delete/4</code>.</p></div>
+</div>
+<div class="sect2">
+<h3 id="_delete_connpid_path_headers_8594_delete_connpid_path_headers">delete(ConnPid, Path, Headers) → delete(ConnPid, Path, Headers, #{})</h3>
+<div class="paragraph"><p>Alias of <code>gun:delete/4</code>.</p></div>
</div>
<div class="sect2">
-<h3 id="_delete_connpid_path_headers_8594_streamref">delete(ConnPid, Path, Headers) → StreamRef</h3>
+<h3 id="_delete_connpid_path_headers_reqopts_8594_streamref">delete(ConnPid, Path, Headers, ReqOpts) → StreamRef</h3>
<div class="dlist"><dl>
<dt class="hdlist1">
ConnPid = pid()
@@ -687,6 +726,14 @@ Additional request headers. </p>
</dd>
<dt class="hdlist1">
+ReqOpts = req_opts()
+</dt>
+<dd>
+<p>
+Request options.
+</p>
+</dd>
+<dt class="hdlist1">
StreamRef = reference()
</dt>
<dd>
@@ -698,11 +745,15 @@ Identifier of the stream for this request. <div class="paragraph"><p>Delete a resource.</p></div>
</div>
<div class="sect2">
-<h3 id="_get_connpid_path_8594_get_connpid_path">get(ConnPid, Path) → get(ConnPid, Path, [])</h3>
-<div class="paragraph"><p>Alias of <code>gun:get/3</code>.</p></div>
+<h3 id="_get_connpid_path_8594_get_connpid_path">get(ConnPid, Path) → get(ConnPid, Path, [], #{})</h3>
+<div class="paragraph"><p>Alias of <code>gun:get/4</code>.</p></div>
+</div>
+<div class="sect2">
+<h3 id="_get_connpid_path_headers_8594_get_connpid_path_headers">get(ConnPid, Path, Headers) → get(ConnPid, Path, Headers, #{})</h3>
+<div class="paragraph"><p>Alias of <code>gun:get/4</code>.</p></div>
</div>
<div class="sect2">
-<h3 id="_get_connpid_path_headers_8594_streamref">get(ConnPid, Path, Headers) → StreamRef</h3>
+<h3 id="_get_connpid_path_headers_reqopts_8594_streamref">get(ConnPid, Path, Headers, ReqOpts) → StreamRef</h3>
<div class="dlist"><dl>
<dt class="hdlist1">
ConnPid = pid()
@@ -729,6 +780,14 @@ Additional request headers. </p>
</dd>
<dt class="hdlist1">
+ReqOpts = req_opts()
+</dt>
+<dd>
+<p>
+Request options.
+</p>
+</dd>
+<dt class="hdlist1">
StreamRef = reference()
</dt>
<dd>
@@ -740,11 +799,15 @@ Identifier of the stream for this request. <div class="paragraph"><p>Get a resource.</p></div>
</div>
<div class="sect2">
-<h3 id="_head_connpid_path_8594_head_connpid_path">head(ConnPid, Path) → head(ConnPid, Path, [])</h3>
-<div class="paragraph"><p>Alias of <code>gun:head/3</code>.</p></div>
+<h3 id="_head_connpid_path_8594_head_connpid_path">head(ConnPid, Path) → head(ConnPid, Path, [], #{})</h3>
+<div class="paragraph"><p>Alias of <code>gun:head/4</code>.</p></div>
</div>
<div class="sect2">
-<h3 id="_head_connpid_path_headers_8594_streamref">head(ConnPid, Path, Headers) → StreamRef</h3>
+<h3 id="_head_connpid_path_headers_8594_head_connpid_path_headers">head(ConnPid, Path, Headers) → head(ConnPid, Path, Headers, #{})</h3>
+<div class="paragraph"><p>Alias of <code>gun:head/4</code>.</p></div>
+</div>
+<div class="sect2">
+<h3 id="_head_connpid_path_headers_reqopts_8594_streamref">head(ConnPid, Path, Headers, ReqOpts) → StreamRef</h3>
<div class="dlist"><dl>
<dt class="hdlist1">
ConnPid = pid()
@@ -771,6 +834,14 @@ Additional request headers. </p>
</dd>
<dt class="hdlist1">
+ReqOpts = req_opts()
+</dt>
+<dd>
+<p>
+Request options.
+</p>
+</dd>
+<dt class="hdlist1">
StreamRef = reference()
</dt>
<dd>
@@ -788,11 +859,15 @@ request was a GET, like <code>content-length</code>, it is not always the case and differences may exist.</p></div>
</div>
<div class="sect2">
-<h3 id="_options_connpid_path_8594_options_connpid_path">options(ConnPid, Path) → options(ConnPid, Path, [])</h3>
-<div class="paragraph"><p>Alias of <code>gun:options/3</code>.</p></div>
+<h3 id="_options_connpid_path_8594_options_connpid_path">options(ConnPid, Path) → options(ConnPid, Path, [], #{})</h3>
+<div class="paragraph"><p>Alias of <code>gun:options/4</code>.</p></div>
</div>
<div class="sect2">
-<h3 id="_options_connpid_path_headers_8594_streamref">options(ConnPid, Path, Headers) → StreamRef</h3>
+<h3 id="_options_connpid_path_headers_8594_options_connpid_path_headers">options(ConnPid, Path, Headers) → options(ConnPid, Path, Headers, #{})</h3>
+<div class="paragraph"><p>Alias of <code>gun:options/4</code>.</p></div>
+</div>
+<div class="sect2">
+<h3 id="_options_connpid_path_headers_reqopts_8594_streamref">options(ConnPid, Path, Headers, ReqOpts) → StreamRef</h3>
<div class="dlist"><dl>
<dt class="hdlist1">
ConnPid = pid()
@@ -819,6 +894,14 @@ Additional request headers. </p>
</dd>
<dt class="hdlist1">
+ReqOpts = req_opts()
+</dt>
+<dd>
+<p>
+Request options.
+</p>
+</dd>
+<dt class="hdlist1">
StreamRef = reference()
</dt>
<dd>
@@ -878,7 +961,11 @@ with instructions on how to update the resource.</p></div> <div class="paragraph"><p>You can use the <code>gun:data/4</code> function to send the body, if any.</p></div>
</div>
<div class="sect2">
-<h3 id="_patch_connpid_path_headers_body_8594_streamref">patch(ConnPid, Path, Headers, Body) → StreamRef</h3>
+<h3 id="_patch_connpid_path_headers_body_8594_patch_connpid_path_headers_body">patch(ConnPid, Path, Headers, Body) → patch(ConnPid, Path, Headers, Body, #{})</h3>
+<div class="paragraph"><p>Alias of <code>gun:patch/5</code>.</p></div>
+</div>
+<div class="sect2">
+<h3 id="_patch_connpid_path_headers_body_reqopts_8594_streamref">patch(ConnPid, Path, Headers, Body, ReqOpts) → StreamRef</h3>
<div class="dlist"><dl>
<dt class="hdlist1">
ConnPid = pid()
@@ -913,6 +1000,14 @@ Body of the request. </p>
</dd>
<dt class="hdlist1">
+ReqOpts = req_opts()
+</dt>
+<dd>
+<p>
+Request options.
+</p>
+</dd>
+<dt class="hdlist1">
StreamRef = reference()
</dt>
<dd>
@@ -979,7 +1074,11 @@ located at a different URI.</p></div> <div class="paragraph"><p>You can use the <code>gun:data/4</code> function to send the body, if any.</p></div>
</div>
<div class="sect2">
-<h3 id="_post_connpid_path_headers_body_8594_streamref">post(ConnPid, Path, Headers, Body) → StreamRef</h3>
+<h3 id="_post_connpid_path_headers_body_8594_post_connpid_path_headers_body">post(ConnPid, Path, Headers, Body) → post(ConnPid, Path, Headers, Body, #{})</h3>
+<div class="paragraph"><p>Alias of <code>gun:post/5</code>.</p></div>
+</div>
+<div class="sect2">
+<h3 id="_post_connpid_path_headers_body_reqopts_8594_streamref">post(ConnPid, Path, Headers, Body, ReqOpts) → StreamRef</h3>
<div class="dlist"><dl>
<dt class="hdlist1">
ConnPid = pid()
@@ -1014,6 +1113,14 @@ Body of the request. </p>
</dd>
<dt class="hdlist1">
+ReqOpts = req_opts()
+</dt>
+<dd>
+<p>
+Request options.
+</p>
+</dd>
+<dt class="hdlist1">
StreamRef = reference()
</dt>
<dd>
@@ -1079,7 +1186,11 @@ highly recommended to set both when possible.</p></div> <div class="paragraph"><p>You can use the <code>gun:data/4</code> function to send the body, if any.</p></div>
</div>
<div class="sect2">
-<h3 id="_put_connpid_path_headers_body_8594_streamref">put(ConnPid, Path, Headers, Body) → StreamRef</h3>
+<h3 id="_put_connpid_path_headers_body_8594_put_connpid_path_headers_body">put(ConnPid, Path, Headers, Body) → put(ConnPid, Path, Headers, Body, #{})</h3>
+<div class="paragraph"><p>Alias of <code>gun:put/5</code>.</p></div>
+</div>
+<div class="sect2">
+<h3 id="_put_connpid_path_headers_body_reqopts_8594_streamref">put(ConnPid, Path, Headers, Body, ReqOpts) → StreamRef</h3>
<div class="dlist"><dl>
<dt class="hdlist1">
ConnPid = pid()
@@ -1114,6 +1225,14 @@ Body of the request. </p>
</dd>
<dt class="hdlist1">
+ReqOpts = req_opts()
+</dt>
+<dd>
+<p>
+Request options.
+</p>
+</dd>
+<dt class="hdlist1">
StreamRef = reference()
</dt>
<dd>
@@ -1185,7 +1304,11 @@ highly recommended to set both when possible.</p></div> <div class="paragraph"><p>You can use the <code>gun:data/4</code> function to send the body, if any.</p></div>
</div>
<div class="sect2">
-<h3 id="_request_connpid_method_path_headers_body_8594_streamref">request(ConnPid, Method, Path, Headers, Body) → StreamRef</h3>
+<h3 id="_request_connpid_method_path_headers_body_8594_request_connpid_method_path_headers_body">request(ConnPid, Method, Path, Headers, Body) → request(ConnPid, Method, Path, Headers, Body, #{})</h3>
+<div class="paragraph"><p>Alias of <code>gun:request/6</code>.</p></div>
+</div>
+<div class="sect2">
+<h3 id="_request_connpid_method_path_headers_body_reqopts_8594_streamref">request(ConnPid, Method, Path, Headers, Body, ReqOpts) → StreamRef</h3>
<div class="dlist"><dl>
<dt class="hdlist1">
ConnPid = pid()
@@ -1228,6 +1351,14 @@ Body of the request. </p>
</dd>
<dt class="hdlist1">
+ReqOpts = req_opts()
+</dt>
+<dd>
+<p>
+Request options.
+</p>
+</dd>
+<dt class="hdlist1">
StreamRef = reference()
</dt>
<dd>
@@ -1727,7 +1858,6 @@ Frames = @todo <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> - <script src="/js/bootstrap-carousel.js"></script> <script src="/js/bootstrap-dropdown.js"></script> <script src="/js/custom.js"></script> </body> diff --git a/docs/en/gun/1.0/manual/gun_app/index.html b/docs/en/gun/1.0/manual/gun_app/index.html index 6adca335..e0f16bd8 100644 --- a/docs/en/gun/1.0/manual/gun_app/index.html +++ b/docs/en/gun/1.0/manual/gun_app/index.html @@ -161,7 +161,6 @@ environment configuration parameters.</p></div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> - <script src="/js/bootstrap-carousel.js"></script> <script src="/js/bootstrap-dropdown.js"></script> <script src="/js/custom.js"></script> </body> diff --git a/docs/en/gun/1.0/manual/index.html b/docs/en/gun/1.0/manual/index.html index 8629cdb2..41a4cd56 100644 --- a/docs/en/gun/1.0/manual/index.html +++ b/docs/en/gun/1.0/manual/index.html @@ -145,7 +145,6 @@ <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> - <script src="/js/bootstrap-carousel.js"></script> <script src="/js/bootstrap-dropdown.js"></script> <script src="/js/custom.js"></script> </body> |