From 5e05fe8e7877ffd6bc473b77b8ca0a12ad26bd67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 14 Mar 2024 16:23:56 +0100 Subject: Cowboy 2.12, Cowlib 2.13, Gun 2.1 --- .../2.12/manual/cowboy_req.version/index.html | 200 +++++++++++++++++++++ 1 file changed, 200 insertions(+) create mode 100644 docs/en/cowboy/2.12/manual/cowboy_req.version/index.html (limited to 'docs/en/cowboy/2.12/manual/cowboy_req.version') diff --git a/docs/en/cowboy/2.12/manual/cowboy_req.version/index.html b/docs/en/cowboy/2.12/manual/cowboy_req.version/index.html new file mode 100644 index 00000000..8d1084d8 --- /dev/null +++ b/docs/en/cowboy/2.12/manual/cowboy_req.version/index.html @@ -0,0 +1,200 @@ + + + + + + + + + + Nine Nines: cowboy_req:version(3) + + + + + + + + + + + + + + + +
+
+
+
+ +

cowboy_req:version(3)

+ +

Name

+

cowboy_req:version - HTTP version

+

Description

+
+
version(Req :: cowboy_req:req()) -> Version :: cowboy:http_version()
+
+

Return the HTTP version used for the request.

+

The version can also be obtained using pattern matching:

+
+
#{version := Version} = Req.
+
+

Arguments

+
Req
+

The Req object.

+
+
+

Return value

+

The HTTP version used for the request is returned as an atom. It is provided for informative purposes only.

+

Changelog

+
  • 2.0: Only the version is returned, it is no longer wrapped in a tuple. +
  • +
  • 1.0: Function introduced. +
  • +
+

Examples

+
Get the HTTP version
+
+
Version = cowboy_req:version(Req).
+
+

See also

+

cowboy_req(3)

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

+ Cowboy + 2.12 + 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