aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src/manual/cowboy_req.read_part.asciidoc
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-06-09 16:57:11 +0200
committerLoïc Hoguin <[email protected]>2017-06-09 16:57:11 +0200
commitec00e3d60e985e00c6b425434af5017c634801db (patch)
tree52a94d91613704264935aa424330df71d47120b9 /doc/src/manual/cowboy_req.read_part.asciidoc
parent6f7b59886ec17027b16ed4d10737452e17f233d0 (diff)
downloadcowboy-ec00e3d60e985e00c6b425434af5017c634801db.tar.gz
cowboy-ec00e3d60e985e00c6b425434af5017c634801db.tar.bz2
cowboy-ec00e3d60e985e00c6b425434af5017c634801db.zip
Make cowboy_req:read_part return multipart headers as map
Diffstat (limited to 'doc/src/manual/cowboy_req.read_part.asciidoc')
-rw-r--r--doc/src/manual/cowboy_req.read_part.asciidoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/manual/cowboy_req.read_part.asciidoc b/doc/src/manual/cowboy_req.read_part.asciidoc
index 0d689d8..fd21d4a 100644
--- a/doc/src/manual/cowboy_req.read_part.asciidoc
+++ b/doc/src/manual/cowboy_req.read_part.asciidoc
@@ -15,7 +15,7 @@ read_part(Req :: cowboy_req:req(), Opts)
-> {ok, Headers, Req} | {done, Req}
Opts :: cowboy_req:read_body_opts()
-Headers :: cow_multipart:headers()
+Headers :: #{binary() => binary()}
----
Read the next part of a multipart body.
@@ -70,7 +70,7 @@ to 5 seconds.
== Return value
An `ok` tuple is returned containing the next part's headers
-as a list of key/values.
+as a map.
A `done` tuple is returned if there are no more parts to read.