From d2a3f2cedd7c00d0933222aed9c06b3149aa4db4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 4 Apr 2018 13:13:37 +0200 Subject: Cowboy 2.3.0 --- docs/en/cowboy/2.0/guide/multipart/index.html | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'docs/en/cowboy/2.0/guide/multipart') diff --git a/docs/en/cowboy/2.0/guide/multipart/index.html b/docs/en/cowboy/2.0/guide/multipart/index.html index 74ce4800..a290b34f 100644 --- a/docs/en/cowboy/2.0/guide/multipart/index.html +++ b/docs/en/cowboy/2.0/guide/multipart/index.html @@ -7,7 +7,7 @@ - + Nine Nines: Multipart requests @@ -108,7 +108,7 @@ Proper investigation of the contents is recommended.

The content-type header indicates the presence of a multipart message:

-
@@ -129,7 +129,7 @@ need to call the function multiple times.

To read a multipart message you need to iterate over all its parts:

-
@@ -153,7 +153,7 @@ is a normal field or a file being uploaded.

use different strategies depending on whether the part is a file:

-
@@ -186,14 +186,14 @@ up to 64KB for up to 5 seconds. cowboy_req:read_part_body/1 has the same defaults as cowboy_req:read_body/1.

To change the defaults for part headers:

-
cowboy_req:read_part(Req, #{length => 128000}).

And for part bodies:

-
@@ -208,7 +208,7 @@ skip it when you request the next part’s body.

The following snippet reads all part headers and skips all bodies:

-
@@ -286,6 +286,8 @@ reading as soon as you find the data you need.

+
  • 2.3
  • +
  • 2.2
  • 2.1
  • -- cgit v1.2.3