Debian Codegraph @

doc/src/manual/cowboy_req.resp_headers.asciidoc

raw
1 = cowboy_req:resp_headers(3)
2
3 == Name
4
5 cowboy_req:resp_headers - Response headers
6
7 == Description
8
9 [source,erlang]
10 ----
11 resp_headers(Req :: cowboy_req:req()) -> cowboy:http_headers()
12 ----
13
14 Return all response headers.
15
16 == Arguments
17
18 Req::
19
20 The Req object.
21
22 == Return value
23
24 Headers are returned as a map with keys being lowercase
25 binary strings, and values as binary strings.
26
27 == Changelog
28
29 * *2.0*: Function introduced.
30
31 == Examples
32
33 .Get all response headers
34 [source,erlang]
35 ----
36 Headers = cowboy_req:resp_headers(Req).
37 ----
38
39 == See also
40
41 link:man:cowboy_req(3)[cowboy_req(3)],
42 link:man:cowboy_req:resp_header(3)[cowboy_req:resp_header(3)],
43 link:man:cowboy_req:set_resp_header(3)[cowboy_req:set_resp_header(3)],
44 link:man:cowboy_req:set_resp_headers(3)[cowboy_req:set_resp_headers(3)]