From 41c769ab5c19da92ecba35d9accc4bc123029e8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 23 May 2017 20:47:46 +0200 Subject: Remove the use of bootstrap-carousel The custom.js file was converted to not use jquery also. Once bootstrap is gone, we can remove jquery entirely. --- docs/en/gun/1.0/guide/http/index.html | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) (limited to 'docs/en/gun/1.0/guide/http/index.html') 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.

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"

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"

DELETE

-

Use gun:delete/{2,3} to delete a resource.

+

Use gun:delete/{2,3,4} to delete a resource.

DELETE "/organizations/ninenines"

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.

@@ -444,6 +444,21 @@ http://www.gnu.org/software/src-highlite -->
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
+
+
StreamRef = gun:get(ConnPid, "/organizations/ninenines", [],
+        #{reply_to => Pid}).
+
+
@@ -527,7 +542,6 @@ http://www.gnu.org/software/src-highlite --> - -- cgit v1.2.3