From 48f39402181d959cad88cb3f460210c007169f50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 12 May 2021 11:13:47 +0200 Subject: Cowboy 2.9.0 --- docs/en/cowboy/2.9/manual/cowboy/index.html | 228 ++++++++++++++++++++++++++++ 1 file changed, 228 insertions(+) create mode 100644 docs/en/cowboy/2.9/manual/cowboy/index.html (limited to 'docs/en/cowboy/2.9/manual/cowboy/index.html') diff --git a/docs/en/cowboy/2.9/manual/cowboy/index.html b/docs/en/cowboy/2.9/manual/cowboy/index.html new file mode 100644 index 00000000..be8ff315 --- /dev/null +++ b/docs/en/cowboy/2.9/manual/cowboy/index.html @@ -0,0 +1,228 @@ + + + + + + + + + + Nine Nines: cowboy(3) + + + + + + + + + + + + + + + + +
+
+
+
+ +

cowboy(3)

+ +

Name

+

cowboy - HTTP server

+

Description

+

The module cowboy provides convenience functions for manipulating Ranch listeners.

+

Exports

+ +

Types

+

fields()

+
+
fields() :: [Name
+           | {Name, Constraints}
+           | {Name, Constraints, Default}]
+
+Name        :: atom()
+Constraints :: Constraint | [Constraint]
+Constraint  :: cowboy_constraints:constraint()
+Default     :: any()
+
+

Fields description for match operations.

+

This type is used in cowboy_router(3) for matching bindings and in the match functions found in cowboy_req(3).

+

http_headers()

+
+
http_headers() :: #{binary() => iodata()}
+
+

HTTP headers.

+

http_status()

+
+
http_status() :: non_neg_integer() | binary()
+
+

HTTP response status.

+

A binary status can be used to set a reason phrase. Note however that HTTP/2 only sends the status code and drops the reason phrase entirely.

+

http_version()

+
+
http_version() :: 'HTTP/2' | 'HTTP/1.1' | 'HTTP/1.0'
+
+

HTTP version.

+

Note that semantically, HTTP/1.1 and HTTP/2 are equivalent.

+

opts()

+
+
opts() :: map()
+
+

Options for the HTTP/1.1, HTTP/2 and Websocket protocols.

+

The protocol options are in a map containing all the options for the different protocols that may be involved when connecting to the listener, including HTTP/1.1 and HTTP/2.

+

The HTTP/1.1 options are documented in the cowboy_http(3) manual and the HTTP/2 options in cowboy_http2(3).

+

See also

+

cowboy(7), ranch(3)

+ + + + + + +
+ +
+ + +

+ Cowboy + 2.9 + Function Reference + +

+ + + +

Navigation

+ +

Version select

+ + +

Like my work? Donate!

+

Donate to Loïc Hoguin because his work on Cowboy, Ranch, Gun and Erlang.mk is fantastic:

+
+ + + + + + + + + +

Recurring payment options are also available via GitHub Sponsors. These funds are used to cover the recurring expenses like food, dedicated servers or domain names.

+ + + +
+
+
+
+ + + + + + + + + -- cgit v1.2.3