From 8459bebceb9533948193774371cbd9fd571b78ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 16 Oct 2019 09:48:31 +0200 Subject: Cowboy 2.7.0 --- docs/en/gun/1.3/guide/connect/index.html | 12 +++---- docs/en/gun/1.3/guide/http/index.html | 42 ++++++++++++------------ docs/en/gun/1.3/guide/start/index.html | 10 ++---- docs/en/gun/1.3/guide/websocket/index.html | 12 +++---- docs/en/gun/1.3/manual/gun.await/index.html | 6 ++-- docs/en/gun/1.3/manual/gun.await_body/index.html | 4 +-- docs/en/gun/1.3/manual/gun.await_up/index.html | 4 +-- docs/en/gun/1.3/manual/gun.cancel/index.html | 4 +-- docs/en/gun/1.3/manual/gun.close/index.html | 4 +-- docs/en/gun/1.3/manual/gun.connect/index.html | 8 ++--- docs/en/gun/1.3/manual/gun.data/index.html | 4 +-- docs/en/gun/1.3/manual/gun.delete/index.html | 6 ++-- docs/en/gun/1.3/manual/gun.flush/index.html | 6 ++-- docs/en/gun/1.3/manual/gun.get/index.html | 6 ++-- docs/en/gun/1.3/manual/gun.head/index.html | 6 ++-- docs/en/gun/1.3/manual/gun.info/index.html | 4 +-- docs/en/gun/1.3/manual/gun.open/index.html | 8 ++--- docs/en/gun/1.3/manual/gun.open_unix/index.html | 6 ++-- docs/en/gun/1.3/manual/gun.options/index.html | 6 ++-- docs/en/gun/1.3/manual/gun.patch/index.html | 8 ++--- docs/en/gun/1.3/manual/gun.post/index.html | 8 ++--- docs/en/gun/1.3/manual/gun.put/index.html | 8 ++--- docs/en/gun/1.3/manual/gun.request/index.html | 4 +-- docs/en/gun/1.3/manual/gun.ws_send/index.html | 4 +-- docs/en/gun/1.3/manual/gun.ws_upgrade/index.html | 6 ++-- docs/en/gun/1.3/manual/gun/index.html | 12 +++---- docs/en/gun/1.3/manual/gun_app/index.html | 2 +- docs/en/gun/1.3/manual/gun_data/index.html | 4 +-- docs/en/gun/1.3/manual/gun_down/index.html | 4 +-- docs/en/gun/1.3/manual/gun_error/index.html | 4 +-- docs/en/gun/1.3/manual/gun_inform/index.html | 4 +-- docs/en/gun/1.3/manual/gun_push/index.html | 6 ++-- docs/en/gun/1.3/manual/gun_response/index.html | 4 +-- docs/en/gun/1.3/manual/gun_trailers/index.html | 4 +-- docs/en/gun/1.3/manual/gun_up/index.html | 4 +-- docs/en/gun/1.3/manual/gun_upgrade/index.html | 4 +-- docs/en/gun/1.3/manual/gun_ws/index.html | 4 +-- docs/en/gun/1.3/manual/index.html | 2 +- 38 files changed, 125 insertions(+), 129 deletions(-) (limited to 'docs/en/gun/1.3') diff --git a/docs/en/gun/1.3/guide/connect/index.html b/docs/en/gun/1.3/guide/connect/index.html index 576cafb7..ec8ceaba 100644 --- a/docs/en/gun/1.3/guide/connect/index.html +++ b/docs/en/gun/1.3/guide/connect/index.html @@ -71,7 +71,7 @@

Opening a new connection

The gun:open/2,3 function must be used to open a connection.

Opening a connection to example.org on port 443
-
@@ -82,7 +82,7 @@ http://www.gnu.org/software/src-highlite -->

The transport and protocol used can be overriden via options. The manual documents all available options.

Options can be provided as a third argument, and take the form of a map.

Opening a TLS connection to example.org on port 8443
-
@@ -92,7 +92,7 @@ http://www.gnu.org/software/src-highlite -->

When Gun successfully connects to the server, it sends a gun_up message with the protocol that has been selected for the connection.

Gun provides the functions gun:await_up/1,2,3 that wait for the gun_up message. They can optionally take a monitor reference and/or timeout value. If no monitor is provided, one will be created for the duration of the function call.

Synchronous opening of a connection
-
@@ -107,7 +107,7 @@ http://www.gnu.org/software/src-highlite -->

Gun leaves you the choice as to which one will be used. However, if you use the gun:await/2,3 or gun:await_body/2,3 functions, a monitor may be used for you to avoid getting stuck waiting for a message that will never come.

If you choose to monitor yourself you can do it on a permanent basis rather than on every message you will receive, saving resources. Indeed, the gun:await/3,4 and gun:await_body/3,4 functions both accept a monitor argument if you have one already.

Monitoring the connection process
-
@@ -116,7 +116,7 @@ http://www.gnu.org/software/src-highlite -->

This monitor reference can be kept and used until the connection process exits.

Handling `DOWN` messages
-
@@ -131,7 +131,7 @@ http://www.gnu.org/software/src-highlite -->

Closing the connection abruptly

The connection can be stopped abruptly at any time by calling the gun:close/1 function.

Immediate closing of the connection
-
diff --git a/docs/en/gun/1.3/guide/http/index.html b/docs/en/gun/1.3/guide/http/index.html index 0b49a3f1..9ba45f58 100644 --- a/docs/en/gun/1.3/guide/http/index.html +++ b/docs/en/gun/1.3/guide/http/index.html @@ -69,7 +69,7 @@

Streams can be canceled at any time. This will stop any further messages from being sent to the owner process. Depending on its capabilities, the server will also be instructed to cancel the request.

Canceling a stream may result in Gun dropping the connection temporarily, to avoid uploading or downloading data that will not be used.

Cancelling a stream
-
@@ -83,14 +83,14 @@ http://www.gnu.org/software/src-highlite -->

GET and HEAD

Use gun:get/2,3,4 to request a resource.

GET "/organizations/ninenines"
-
StreamRef = gun:get(ConnPid, "/organizations/ninenines").
GET "/organizations/ninenines" with custom headers
-
@@ -102,14 +102,14 @@ http://www.gnu.org/software/src-highlite -->

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,4 if you don't need the response body.

HEAD "/organizations/ninenines"
-
StreamRef = gun:head(ConnPid, "/organizations/ninenines").
HEAD "/organizations/ninenines" with custom headers
-
@@ -128,7 +128,7 @@ http://www.gnu.org/software/src-highlite -->

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. Gun will set the other headers automatically.

In this and the following examples in this section, gun:post can be replaced by gun:put or gun:patch for performing a PUT or PATCH request, respectively.

POST "/organizations/ninenines"
-
@@ -140,7 +140,7 @@ http://www.gnu.org/software/src-highlite -->

The gun:post/3, gun:put/3 and gun:patch/3 functions do not take a body in their arguments. If a body is to be provided later on, using the gun:data/4 function, then the request headers must indicate this. This can be done by setting the content-length or content-type request headers. If these headers are not set then Gun will assume the request has no body.

It is recommended to send the content-length header if you know it in advance, although this is not required. If it is not set, HTTP/1.1 will use the chunked transfer-encoding, and HTTP/2 will continue normally as it is chunked by design.

POST "/organizations/ninenines" with delayed body
-
@@ -153,7 +153,7 @@ http://www.gnu.org/software/src-highlite -->

The atom fin indicates this is the last chunk of data to be sent. You can call the gun:data/4 function as many times as needed until you have sent the entire body. The last call must use fin and all the previous calls must use nofin. The last chunk may be empty.

Streaming the request body
-
@@ -174,14 +174,14 @@ http://www.gnu.org/software/src-highlite -->

DELETE

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

DELETE "/organizations/ninenines"
-
StreamRef = gun:delete(ConnPid, "/organizations/ninenines").
DELETE "/organizations/ninenines" with custom headers
-
@@ -192,14 +192,14 @@ http://www.gnu.org/software/src-highlite -->

OPTIONS

Use gun:options/2,3 to request information about a resource.

OPTIONS "/organizations/ninenines"
-
StreamRef = gun:options(ConnPid, "/organizations/ninenines").
OPTIONS "/organizations/ninenines" with custom headers
-
@@ -209,7 +209,7 @@ http://www.gnu.org/software/src-highlite -->

You can also use this function to request information about the server itself.

OPTIONS "*"
-
@@ -218,7 +218,7 @@ http://www.gnu.org/software/src-highlite -->

Requests with an arbitrary method

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.

Example of a TRACE request
-
@@ -232,7 +232,7 @@ http://www.gnu.org/software/src-highlite -->

When using HTTP/2 this value is sent with the frame and simply passed on in the message. When using HTTP/1.1 however Gun must guess whether data will follow by looking at the response headers.

You can receive messages directly, or you can use the await functions to let Gun receive them for you.

Receiving a response using receive
-
@@ -270,7 +270,7 @@ http://www.gnu.org/software/src-highlite -->

When calling gun:await/2,3 and not passing a monitor reference, one is automatically created for you for the duration of the call.

The gun:await_body/2,3,4 works similarly, but returns the body received. Both functions can be combined to receive the response and its body sequentially.

Receiving a response using await
-
@@ -288,7 +288,7 @@ http://www.gnu.org/software/src-highlite -->

You can safely choose to ignore gun_push messages, or you can handle them. If you do, you can either receive the messages directly or use await functions.

The gun_push message contains both the new stream reference and the stream reference of the original request.

Receiving a pushed response using receive
-
@@ -300,7 +300,7 @@ http://www.gnu.org/software/src-highlite -->

If you use the gun:await/2,3,4 function, however, Gun will use the original reference to identify the message but will return a tuple that doesn't contain it.

Receiving a pushed response using await
-
@@ -311,14 +311,14 @@ http://www.gnu.org/software/src-highlite -->

Flushing unwanted messages

Gun provides the function gun:flush/1 to quickly get rid of unwanted messages sitting in the process mailbox. You can use it to get rid of all messages related to a connection, or just the messages related to a stream.

Flush all messages from a Gun connection
-
gun:flush(ConnPid).
Flush all messages from a specific stream
-
@@ -327,7 +327,7 @@ http://www.gnu.org/software/src-highlite -->

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
-
diff --git a/docs/en/gun/1.3/guide/start/index.html b/docs/en/gun/1.3/guide/start/index.html index deabae16..df5bcd1f 100644 --- a/docs/en/gun/1.3/guide/start/index.html +++ b/docs/en/gun/1.3/guide/start/index.html @@ -67,16 +67,12 @@

Specify Gun as a dependency to your application in your favorite build tool.

With Erlang.mk this is done by adding gun to the DEPS variable in your Makefile.

Adding Gun as an Erlang.mk dependency
-
-
DEPS = gun
+
source-highlight: could not find a language definition for make

Starting

Gun is an OTP application. It needs to be started before you can use it.

Starting Gun in an Erlang shell
-
@@ -86,7 +82,7 @@ http://www.gnu.org/software/src-highlite -->

Stopping

You can stop Gun using the application:stop/1 function, however only Gun will be stopped. This is the reverse of application:start/1. The application_ensure_all_started/1 function has no equivalent for stopping all applications.

Stopping Gun
-
diff --git a/docs/en/gun/1.3/guide/websocket/index.html b/docs/en/gun/1.3/guide/websocket/index.html index 30f80e3f..4c2ad4ec 100644 --- a/docs/en/gun/1.3/guide/websocket/index.html +++ b/docs/en/gun/1.3/guide/websocket/index.html @@ -68,7 +68,7 @@

Websocket is a protocol built on top of HTTP. To use Websocket, you must first request for the connection to be upgraded. Only HTTP/1.1 connections can be upgraded to Websocket, so you might need to restrict the protocol to HTTP/1.1 if you are planning to use Websocket over TLS.

You must use the gun:ws_upgrade/2,3,4 function to upgrade to Websocket. This function can be called anytime after connection, so you can send HTTP requests before upgrading to Websocket.

Upgrade to Websocket
-
@@ -76,7 +76,7 @@ http://www.gnu.org/software/src-highlite -->

Gun will set all the necessary headers for performing the Websocket upgrade, but you can specify additional headers if needed. For example you can authenticate.

Upgrade to Websocket using HTTP authentication
-
@@ -87,7 +87,7 @@ http://www.gnu.org/software/src-highlite -->

You can pass the Websocket options as part of the gun:open/2,3 call when opening the connection, or using the gun:ws_upgrade/4. The fourth argument is those same options.

Gun can negotiate the protocol to be used for the Websocket connection. The protocols option can be given with a list of protocols accepted and the corresponding handler module. Note that the interface for handler modules is currently undocumented and must be set to gun_ws_h.

Upgrade to Websocket with protocol negotiation
-
@@ -97,7 +97,7 @@ http://www.gnu.org/software/src-highlite -->

The upgrade will fail if the server cannot satisfy the protocol negotiation.

When the upgrade succeeds, a gun_upgrade message is sent. If the server does not understand Websocket or refused the upgrade, a gun_response message is sent. If Gun couldn't perform the upgrade due to an error (for example attempting to upgrade to Websocket on an HTTP/1.0 connection) then a gun_error message is sent.

When the server does not understand Websocket, it may send a meaningful response which should be processed. In the following example we however ignore it:

-
@@ -117,7 +117,7 @@ http://www.gnu.org/software/src-highlite -->

Once the Websocket upgrade has completed successfully, you no longer have access to functions for performing requests. You can only send and receive Websocket messages.

Use gun:ws_send/2 to send messages to the server.

Send a text frame
-
@@ -137,7 +137,7 @@ http://www.gnu.org/software/src-highlite -->

Note that if you send a close frame, Gun will close the connection cleanly but will attempt to reconnect afterwards.

Receiving data

Gun sends an Erlang message to the owner process for every Websocket message it receives.

-
diff --git a/docs/en/gun/1.3/manual/gun.await/index.html b/docs/en/gun/1.3/manual/gun.await/index.html index 30c748ff..ae6ab0cc 100644 --- a/docs/en/gun/1.3/manual/gun.await/index.html +++ b/docs/en/gun/1.3/manual/gun.await/index.html @@ -65,7 +65,7 @@

Name

gun:await - Wait for a response

Description

-
@@ -106,7 +106,7 @@ http://www.gnu.org/software/src-highlite -->

Return value

A number of different tuples can be returned. They correspond to the message of the same name and they contain the same elements minus the pid and stream reference. Error tuples may also be returned when a timeout or an error occur.

-
@@ -137,7 +137,7 @@ http://www.gnu.org/software/src-highlite -->

Examples

Wait for a response
-
diff --git a/docs/en/gun/1.3/manual/gun.await_body/index.html b/docs/en/gun/1.3/manual/gun.await_body/index.html index 0c683eca..ab90f4f7 100644 --- a/docs/en/gun/1.3/manual/gun.await_body/index.html +++ b/docs/en/gun/1.3/manual/gun.await_body/index.html @@ -65,7 +65,7 @@

Name

gun:await_body - Wait for the complete response body

Description

-
@@ -113,7 +113,7 @@ http://www.gnu.org/software/src-highlite -->

Examples

Wait for the complete response body
-
diff --git a/docs/en/gun/1.3/manual/gun.await_up/index.html b/docs/en/gun/1.3/manual/gun.await_up/index.html index 1e9f6cc5..18eccb05 100644 --- a/docs/en/gun/1.3/manual/gun.await_up/index.html +++ b/docs/en/gun/1.3/manual/gun.await_up/index.html @@ -65,7 +65,7 @@

Name

gun:await_up - Wait for the connection to be up

Description

-
@@ -108,7 +108,7 @@ http://www.gnu.org/software/src-highlite -->

Examples

Wait for the connection to be up
-
diff --git a/docs/en/gun/1.3/manual/gun.cancel/index.html b/docs/en/gun/1.3/manual/gun.cancel/index.html index d36f6819..25ed2535 100644 --- a/docs/en/gun/1.3/manual/gun.cancel/index.html +++ b/docs/en/gun/1.3/manual/gun.cancel/index.html @@ -65,7 +65,7 @@

Name

gun:cancel - Cancel the given stream

Description

-
@@ -95,7 +95,7 @@ http://www.gnu.org/software/src-highlite -->

Examples

Cancel a stream
-
diff --git a/docs/en/gun/1.3/manual/gun.close/index.html b/docs/en/gun/1.3/manual/gun.close/index.html index 41d017d4..30748b5b 100644 --- a/docs/en/gun/1.3/manual/gun.close/index.html +++ b/docs/en/gun/1.3/manual/gun.close/index.html @@ -65,7 +65,7 @@

Name

gun:close - Brutally close the connection

Description

-
@@ -87,7 +87,7 @@ http://www.gnu.org/software/src-highlite -->

Examples

Close the connection
-
diff --git a/docs/en/gun/1.3/manual/gun.connect/index.html b/docs/en/gun/1.3/manual/gun.connect/index.html index 5df95f76..4e0310fa 100644 --- a/docs/en/gun/1.3/manual/gun.connect/index.html +++ b/docs/en/gun/1.3/manual/gun.connect/index.html @@ -65,7 +65,7 @@

Name

gun:connect - Establish a tunnel to the origin server

Description

-
@@ -109,7 +109,7 @@ http://www.gnu.org/software/src-highlite -->

Examples

Establish a tunnel
-
@@ -123,7 +123,7 @@ http://www.gnu.org/software/src-highlite --> %% Subsequent requests will be sent to origin-server.example.org.
Establish a tunnel for a secure HTTP/2 connection
-
@@ -139,7 +139,7 @@ http://www.gnu.org/software/src-highlite --> %% Subsequent requests will be sent to origin-server.example.org.
Establish a tunnel using proxy authorization
-
diff --git a/docs/en/gun/1.3/manual/gun.data/index.html b/docs/en/gun/1.3/manual/gun.data/index.html index 4977ccfb..fb3119fb 100644 --- a/docs/en/gun/1.3/manual/gun.data/index.html +++ b/docs/en/gun/1.3/manual/gun.data/index.html @@ -65,7 +65,7 @@

Name

gun:data - Stream the body of a request

Description

-
@@ -102,7 +102,7 @@ http://www.gnu.org/software/src-highlite -->

Examples

Stream the body of a request
-
diff --git a/docs/en/gun/1.3/manual/gun.delete/index.html b/docs/en/gun/1.3/manual/gun.delete/index.html index 54422a6d..c0f21f41 100644 --- a/docs/en/gun/1.3/manual/gun.delete/index.html +++ b/docs/en/gun/1.3/manual/gun.delete/index.html @@ -65,7 +65,7 @@

Name

gun:delete - Delete a resource

Description

-
@@ -107,14 +107,14 @@ http://www.gnu.org/software/src-highlite -->

Examples

Delete a resource
-
StreamRef = gun:delete(ConnPid, "/drafts/123").
Delete a resource with request options
-
diff --git a/docs/en/gun/1.3/manual/gun.flush/index.html b/docs/en/gun/1.3/manual/gun.flush/index.html index 9cd73195..cac98ad1 100644 --- a/docs/en/gun/1.3/manual/gun.flush/index.html +++ b/docs/en/gun/1.3/manual/gun.flush/index.html @@ -65,7 +65,7 @@

Name

gun:flush - Flush all messages related to a connection or a stream

Description

-
@@ -93,14 +93,14 @@ http://www.gnu.org/software/src-highlite -->

Examples

Flush all messages from a connection
-
gun:flush(ConnPid).
Flush messages from a single stream
-
diff --git a/docs/en/gun/1.3/manual/gun.get/index.html b/docs/en/gun/1.3/manual/gun.get/index.html index 0060291f..7e78e920 100644 --- a/docs/en/gun/1.3/manual/gun.get/index.html +++ b/docs/en/gun/1.3/manual/gun.get/index.html @@ -65,7 +65,7 @@

Name

gun:get - Get a resource representation

Description

-
@@ -107,7 +107,7 @@ http://www.gnu.org/software/src-highlite -->

Examples

Get a resource representation
-
@@ -116,7 +116,7 @@ http://www.gnu.org/software/src-highlite --> ]).
Get a resource representation with request options
-
diff --git a/docs/en/gun/1.3/manual/gun.head/index.html b/docs/en/gun/1.3/manual/gun.head/index.html index 3871e048..583e56f1 100644 --- a/docs/en/gun/1.3/manual/gun.head/index.html +++ b/docs/en/gun/1.3/manual/gun.head/index.html @@ -65,7 +65,7 @@

Name

gun:head - Get headers of a resource representation

Description

-
@@ -109,7 +109,7 @@ http://www.gnu.org/software/src-highlite -->

Examples

Get headers of a resource representation
-
@@ -118,7 +118,7 @@ http://www.gnu.org/software/src-highlite --> ]).
Get headers of a resource representation with request options
-
diff --git a/docs/en/gun/1.3/manual/gun.info/index.html b/docs/en/gun/1.3/manual/gun.info/index.html index facf23b5..09a911d4 100644 --- a/docs/en/gun/1.3/manual/gun.info/index.html +++ b/docs/en/gun/1.3/manual/gun.info/index.html @@ -65,7 +65,7 @@

Name

gun:info - Obtain information about the connection

Description

-
@@ -106,7 +106,7 @@ http://www.gnu.org/software/src-highlite -->

Examples

Obtain information about the connection
-
diff --git a/docs/en/gun/1.3/manual/gun.open/index.html b/docs/en/gun/1.3/manual/gun.open/index.html index 17d95644..d935582b 100644 --- a/docs/en/gun/1.3/manual/gun.open/index.html +++ b/docs/en/gun/1.3/manual/gun.open/index.html @@ -65,7 +65,7 @@

Name

gun:open - Open a connection to the given host and port

Description

-
@@ -96,14 +96,14 @@ http://www.gnu.org/software/src-highlite -->

Examples

Connect to a server
-
{ok, ConnPid} = gun:open("example.org", 443).
Connect to a server with custom options
-
@@ -111,7 +111,7 @@ http://www.gnu.org/software/src-highlite --> #{protocols => [http2]}).
Connect to a server using its IP address
-
diff --git a/docs/en/gun/1.3/manual/gun.open_unix/index.html b/docs/en/gun/1.3/manual/gun.open_unix/index.html index b8999723..b6f4f3da 100644 --- a/docs/en/gun/1.3/manual/gun.open_unix/index.html +++ b/docs/en/gun/1.3/manual/gun.open_unix/index.html @@ -65,7 +65,7 @@

Name

gun:open_unix - Open a connection to the given Unix domain socket

Description

-
@@ -91,14 +91,14 @@ http://www.gnu.org/software/src-highlite -->

Examples

Connect to a server via a Unix domain socket
-
{ok, ConnPid} = gun:open_unix("/var/run/dbus/system_bus_socket", #{}).
Connect to a server via a Unix domain socket with custom options
-
diff --git a/docs/en/gun/1.3/manual/gun.options/index.html b/docs/en/gun/1.3/manual/gun.options/index.html index f62da2c0..2fca4a03 100644 --- a/docs/en/gun/1.3/manual/gun.options/index.html +++ b/docs/en/gun/1.3/manual/gun.options/index.html @@ -65,7 +65,7 @@

Name

gun:options - Query the capabilities of the server or a resource

Description

-
@@ -108,14 +108,14 @@ http://www.gnu.org/software/src-highlite -->

Examples

Query the capabilities of the server
-
StreamRef = gun:options(ConnPid, "*").
Query the capabilities of a resource
-
diff --git a/docs/en/gun/1.3/manual/gun.patch/index.html b/docs/en/gun/1.3/manual/gun.patch/index.html index 3c83ffd7..f0abff85 100644 --- a/docs/en/gun/1.3/manual/gun.patch/index.html +++ b/docs/en/gun/1.3/manual/gun.patch/index.html @@ -65,7 +65,7 @@

Name

gun:patch - Apply a set of changes to a resource

Description

-
@@ -115,7 +115,7 @@ http://www.gnu.org/software/src-highlite -->

Examples

Patch a resource
-
@@ -124,7 +124,7 @@ http://www.gnu.org/software/src-highlite --> <<"[{\"op\":\"add\",\"path\":\"/baz\",\"value\":\"qux\"}]">>).
Patch a resource in multiple calls
-
@@ -135,7 +135,7 @@ http://www.gnu.org/software/src-highlite --> <<"[{\"op\":\"add\",\"path\":\"/baz\",\"value\":\"qux\"}]">>).
Patch a resource with request options
-
diff --git a/docs/en/gun/1.3/manual/gun.post/index.html b/docs/en/gun/1.3/manual/gun.post/index.html index b1ae8888..de47955b 100644 --- a/docs/en/gun/1.3/manual/gun.post/index.html +++ b/docs/en/gun/1.3/manual/gun.post/index.html @@ -65,7 +65,7 @@

Name

gun:post - Process the enclosed representation according to a resource's own semantics

Description

-
@@ -114,7 +114,7 @@ http://www.gnu.org/software/src-highlite -->

Examples

Post to a resource
-
@@ -123,7 +123,7 @@ http://www.gnu.org/software/src-highlite --> <<"q=nine%20nines">>).
Post to a resource in multiple calls
-
@@ -133,7 +133,7 @@ http://www.gnu.org/software/src-highlite --> gun:data(ConnPid, StreamRef, fin, <<"q=nine%20nines">>).
Post to a resource with request options
-
diff --git a/docs/en/gun/1.3/manual/gun.put/index.html b/docs/en/gun/1.3/manual/gun.put/index.html index 9504f2a0..450d2e9f 100644 --- a/docs/en/gun/1.3/manual/gun.put/index.html +++ b/docs/en/gun/1.3/manual/gun.put/index.html @@ -65,7 +65,7 @@

Name

gun:put - Create or replace a resource

Description

-
@@ -114,7 +114,7 @@ http://www.gnu.org/software/src-highlite -->

Examples

Put a resource
-
@@ -123,7 +123,7 @@ http://www.gnu.org/software/src-highlite --> <<"Bonjour !">>).
Put a resource in multiple calls
-
@@ -133,7 +133,7 @@ http://www.gnu.org/software/src-highlite --> gun:data(ConnPid, StreamRef, fin, <<"Bonjour !">>).
Put a resource with request options
-
diff --git a/docs/en/gun/1.3/manual/gun.request/index.html b/docs/en/gun/1.3/manual/gun.request/index.html index d718f07a..66d74b8c 100644 --- a/docs/en/gun/1.3/manual/gun.request/index.html +++ b/docs/en/gun/1.3/manual/gun.request/index.html @@ -65,7 +65,7 @@

Name

gun:request - Perform the given request

Description

-
@@ -119,7 +119,7 @@ http://www.gnu.org/software/src-highlite -->

Examples

Perform a request
-
diff --git a/docs/en/gun/1.3/manual/gun.ws_send/index.html b/docs/en/gun/1.3/manual/gun.ws_send/index.html index 658c9045..52d3b66d 100644 --- a/docs/en/gun/1.3/manual/gun.ws_send/index.html +++ b/docs/en/gun/1.3/manual/gun.ws_send/index.html @@ -65,7 +65,7 @@

Name

gun:ws_send - Send Websocket frames

Description

-
@@ -96,7 +96,7 @@ http://www.gnu.org/software/src-highlite -->

Examples

Send a single frame
-
diff --git a/docs/en/gun/1.3/manual/gun.ws_upgrade/index.html b/docs/en/gun/1.3/manual/gun.ws_upgrade/index.html index 4452a8e2..0d2db527 100644 --- a/docs/en/gun/1.3/manual/gun.ws_upgrade/index.html +++ b/docs/en/gun/1.3/manual/gun.ws_upgrade/index.html @@ -65,7 +65,7 @@

Name

gun:ws_upgrade - Upgrade to Websocket

Description

-
@@ -111,7 +111,7 @@ http://www.gnu.org/software/src-highlite -->

Examples

Upgrade to Websocket
-
@@ -126,7 +126,7 @@ http://www.gnu.org/software/src-highlite --> end.
Upgrade to Websocket with different options
-
diff --git a/docs/en/gun/1.3/manual/gun/index.html b/docs/en/gun/1.3/manual/gun/index.html index 8abc280a..1bf29201 100644 --- a/docs/en/gun/1.3/manual/gun/index.html +++ b/docs/en/gun/1.3/manual/gun/index.html @@ -154,7 +154,7 @@

The response messages will be sent to the process that opened the connection by default. The reply_to request option can be used to redirect request-specific messages to a different process.

Types

connect_destination()

-
@@ -194,7 +194,7 @@ http://www.gnu.org/software/src-highlite -->

http_opts()

-
@@ -218,7 +218,7 @@ http://www.gnu.org/software/src-highlite -->

http2_opts()

-
@@ -235,7 +235,7 @@ http://www.gnu.org/software/src-highlite -->

opts()

-
@@ -286,7 +286,7 @@ http://www.gnu.org/software/src-highlite -->

req_opts()

-
@@ -301,7 +301,7 @@ http://www.gnu.org/software/src-highlite -->

ws_opts()

-
diff --git a/docs/en/gun/1.3/manual/gun_app/index.html b/docs/en/gun/1.3/manual/gun_app/index.html index 06c9858a..b09b2b06 100644 --- a/docs/en/gun/1.3/manual/gun_app/index.html +++ b/docs/en/gun/1.3/manual/gun_app/index.html @@ -78,7 +78,7 @@

All these applications must be started before the gun application. To start Gun and all dependencies at once:

-
diff --git a/docs/en/gun/1.3/manual/gun_data/index.html b/docs/en/gun/1.3/manual/gun_data/index.html index 15ebea6d..53f8a740 100644 --- a/docs/en/gun/1.3/manual/gun_data/index.html +++ b/docs/en/gun/1.3/manual/gun_data/index.html @@ -65,7 +65,7 @@

Name

gun_data - Response body

Description

-
@@ -100,7 +100,7 @@ http://www.gnu.org/software/src-highlite -->

Examples

Receive a gun_data message in a gen_server
-
diff --git a/docs/en/gun/1.3/manual/gun_down/index.html b/docs/en/gun/1.3/manual/gun_down/index.html index e27840a8..d9989345 100644 --- a/docs/en/gun/1.3/manual/gun_down/index.html +++ b/docs/en/gun/1.3/manual/gun_down/index.html @@ -65,7 +65,7 @@

Name

gun_down - The connection is down

Description

-
@@ -106,7 +106,7 @@ http://www.gnu.org/software/src-highlite -->

Examples

Receive a gun_down message in a gen_server
-
diff --git a/docs/en/gun/1.3/manual/gun_error/index.html b/docs/en/gun/1.3/manual/gun_error/index.html index d4e74ff1..4b7352ff 100644 --- a/docs/en/gun/1.3/manual/gun_error/index.html +++ b/docs/en/gun/1.3/manual/gun_error/index.html @@ -65,7 +65,7 @@

Name

gun_error - Stream or connection-wide error

Description

-
@@ -96,7 +96,7 @@ http://www.gnu.org/software/src-highlite -->

Examples

Receive a gun_error message in a gen_server
-
diff --git a/docs/en/gun/1.3/manual/gun_inform/index.html b/docs/en/gun/1.3/manual/gun_inform/index.html index f69219c4..68cc6645 100644 --- a/docs/en/gun/1.3/manual/gun_inform/index.html +++ b/docs/en/gun/1.3/manual/gun_inform/index.html @@ -65,7 +65,7 @@

Name

gun_inform - Informational response

Description

-
@@ -99,7 +99,7 @@ http://www.gnu.org/software/src-highlite -->

Examples

Receive a gun_inform message in a gen_server
-
diff --git a/docs/en/gun/1.3/manual/gun_push/index.html b/docs/en/gun/1.3/manual/gun_push/index.html index 3398fa51..821655f0 100644 --- a/docs/en/gun/1.3/manual/gun_push/index.html +++ b/docs/en/gun/1.3/manual/gun_push/index.html @@ -65,7 +65,7 @@

Name

gun_push - Server-initiated push

Description

-
@@ -108,7 +108,7 @@ http://www.gnu.org/software/src-highlite -->

Examples

Receive a gun_push message in a gen_server
-
@@ -119,7 +119,7 @@ http://www.gnu.org/software/src-highlite --> {noreply, State}.
Cancel an unwanted push
-
diff --git a/docs/en/gun/1.3/manual/gun_response/index.html b/docs/en/gun/1.3/manual/gun_response/index.html index 23acd08b..6a56aaf2 100644 --- a/docs/en/gun/1.3/manual/gun_response/index.html +++ b/docs/en/gun/1.3/manual/gun_response/index.html @@ -65,7 +65,7 @@

Name

gun_response - Response

Description

-
@@ -102,7 +102,7 @@ http://www.gnu.org/software/src-highlite -->

Examples

Receive a gun_response message in a gen_server
-
diff --git a/docs/en/gun/1.3/manual/gun_trailers/index.html b/docs/en/gun/1.3/manual/gun_trailers/index.html index 82dc8fca..55f8ee2e 100644 --- a/docs/en/gun/1.3/manual/gun_trailers/index.html +++ b/docs/en/gun/1.3/manual/gun_trailers/index.html @@ -65,7 +65,7 @@

Name

gun_trailers - Response trailers

Description

-
@@ -95,7 +95,7 @@ http://www.gnu.org/software/src-highlite -->

Examples

Receive a gun_trailers message in a gen_server
-
diff --git a/docs/en/gun/1.3/manual/gun_up/index.html b/docs/en/gun/1.3/manual/gun_up/index.html index 7b95810a..af2eb3bf 100644 --- a/docs/en/gun/1.3/manual/gun_up/index.html +++ b/docs/en/gun/1.3/manual/gun_up/index.html @@ -65,7 +65,7 @@

Name

gun_up - The connection is up

Description

-
@@ -91,7 +91,7 @@ http://www.gnu.org/software/src-highlite -->

Examples

Receive a gun_up message in a gen_server
-
diff --git a/docs/en/gun/1.3/manual/gun_upgrade/index.html b/docs/en/gun/1.3/manual/gun_upgrade/index.html index 886b8cfa..4699b1a5 100644 --- a/docs/en/gun/1.3/manual/gun_upgrade/index.html +++ b/docs/en/gun/1.3/manual/gun_upgrade/index.html @@ -65,7 +65,7 @@

Name

gun_upgrade - Successful protocol upgrade

Description

-
@@ -100,7 +100,7 @@ http://www.gnu.org/software/src-highlite -->

Examples

Receive a gun_upgrade message in a gen_server
-
diff --git a/docs/en/gun/1.3/manual/gun_ws/index.html b/docs/en/gun/1.3/manual/gun_ws/index.html index 9ab1b2bc..9526b6a9 100644 --- a/docs/en/gun/1.3/manual/gun_ws/index.html +++ b/docs/en/gun/1.3/manual/gun_ws/index.html @@ -65,7 +65,7 @@

Name

gun_ws - Websocket frame

Description

-
@@ -97,7 +97,7 @@ http://www.gnu.org/software/src-highlite -->

Examples

Receive a gun_ws message in a gen_server
-
diff --git a/docs/en/gun/1.3/manual/index.html b/docs/en/gun/1.3/manual/index.html index 187eeba4..72be9c95 100644 --- a/docs/en/gun/1.3/manual/index.html +++ b/docs/en/gun/1.3/manual/index.html @@ -78,7 +78,7 @@

All these applications must be started before the gun application. To start Gun and all dependencies at once:

-
-- cgit v1.2.3