From b5d4cb91f80c833795a2d87050c3674bb7aecdc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 3 Oct 2017 13:39:41 +0200 Subject: Update Hugo, docs --- .../manual/cowboy_req.has_resp_header/index.html | 180 ++++++++++----------- 1 file changed, 90 insertions(+), 90 deletions(-) (limited to 'docs/en/cowboy/2.0/manual/cowboy_req.has_resp_header/index.html') diff --git a/docs/en/cowboy/2.0/manual/cowboy_req.has_resp_header/index.html b/docs/en/cowboy/2.0/manual/cowboy_req.has_resp_header/index.html index 4fabcde4..1fc629eb 100644 --- a/docs/en/cowboy/2.0/manual/cowboy_req.has_resp_header/index.html +++ b/docs/en/cowboy/2.0/manual/cowboy_req.has_resp_header/index.html @@ -7,7 +7,7 @@ - + Nine Nines: cowboy_req:has_resp_header(3) @@ -67,95 +67,95 @@

cowboy_req:has_resp_header(3)

-
-

Name

-
-

cowboy_req:has_resp_header - Is the given response header set?

-
-
-
-

Description

-
-
-
-
has_resp_header(Name, Req :: cowboy_req:req()) -> boolean()
-
-Name :: binary()  %% lowercase; case insensitive
-

Return whether the given response header has been set.

-

The header name must be given as a lowercase binary string. -While header names are case insensitive, Cowboy requires them -to be given as lowercase to function properly.

-
-
-
-

Arguments

-
-
-
-Name -
-
-

-Header name as a lowercase binary string. -

-
-
-Req -
-
-

-The Req object. -

-
-
-
-
-
-

Return value

-
-

A boolean indicating whether the given response header has been set.

-
-
-
-

Changelog

-
-
    -
  • -

    -1.0: Function introduced. -

    -
  • -
-
-
-
-

Examples

-
-
-
Check whether the content-type header has been set
-
-
false = cowboy_req:has_resp_header(<<"content-type">>, Req0),
-Req = cowboy_req:set_resp_header(<<"content-type">>, <<"text/html">>, Req0),
-true = cowboy_req:has_resp_header(<<"content-type">>, Req).
-
-
-
-

See also

- -
+
+

Name

+
+

cowboy_req:has_resp_header - Is the given response header set?

+
+
+
+

Description

+
+
+
+
has_resp_header(Name, Req :: cowboy_req:req()) -> boolean()
+
+Name :: binary()  %% lowercase; case insensitive
+

Return whether the given response header has been set.

+

The header name must be given as a lowercase binary string. +While header names are case insensitive, Cowboy requires them +to be given as lowercase to function properly.

+
+
+
+

Arguments

+
+
+
+Name +
+
+

+Header name as a lowercase binary string. +

+
+
+Req +
+
+

+The Req object. +

+
+
+
+
+
+

Return value

+
+

A boolean indicating whether the given response header has been set.

+
+
+
+

Changelog

+
+
    +
  • +

    +1.0: Function introduced. +

    +
  • +
+
+
+
+

Examples

+
+
+
Check whether the content-type header has been set
+
+
false = cowboy_req:has_resp_header(<<"content-type">>, Req0),
+Req = cowboy_req:set_resp_header(<<"content-type">>, <<"text/html">>, Req0),
+true = cowboy_req:has_resp_header(<<"content-type">>, Req).
+
+
+
+

See also

+ +
-- cgit v1.2.3