Debian Codegraph @

doc/src/manual/cowboy_req.has_body.asciidoc

raw
1 = cowboy_req:has_body(3)
2
3 == Name
4
5 cowboy_req:has_body - Is there a request body?
6
7 == Description
8
9 [source,erlang]
10 ----
11 has_body(Req :: cowboy_req:req()) -> boolean()
12 ----
13
14 Return whether the request has a body.
15
16 == Arguments
17
18 Req::
19
20 The Req object.
21
22 == Return value
23
24 A boolean indicating whether the request has a body.
25
26 == Changelog
27
28 * *1.0*: Function introduced.
29
30 == Examples
31
32 .Ensure the request has a body
33 [source,erlang]
34 ----
35 true = cowboy_req:has_body(Req).
36 ----
37
38 == See also
39
40 link:man:cowboy_req(3)[cowboy_req(3)],
41 link:man:cowboy_req:body_length(3)[cowboy_req:body_length(3)],
42 link:man:cowboy_req:read_body(3)[cowboy_req:read_body(3)],
43 link:man:cowboy_req:read_urlencoded_body(3)[cowboy_req:read_urlencoded_body(3)],
44 link:man:cowboy_req:read_part(3)[cowboy_req:read_part(3)],
45 link:man:cowboy_req:read_part_body(3)[cowboy_req:read_part_body(3)]