From 8459bebceb9533948193774371cbd9fd571b78ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 16 Oct 2019 09:48:31 +0200 Subject: Cowboy 2.7.0 --- .../en/cowboy/2.5/manual/cowboy_req.set_resp_body/index.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'docs/en/cowboy/2.5/manual/cowboy_req.set_resp_body/index.html') diff --git a/docs/en/cowboy/2.5/manual/cowboy_req.set_resp_body/index.html b/docs/en/cowboy/2.5/manual/cowboy_req.set_resp_body/index.html index 4f7d6269..bf437e37 100644 --- a/docs/en/cowboy/2.5/manual/cowboy_req.set_resp_body/index.html +++ b/docs/en/cowboy/2.5/manual/cowboy_req.set_resp_body/index.html @@ -65,7 +65,7 @@

Name

cowboy_req:set_resp_body - Set the response body

Description

-
@@ -98,14 +98,14 @@ http://www.gnu.org/software/src-highlite -->

Examples

Set the response body
-
Req = cowboy_req:set_resp_body(<<"Hello world!">>, Req0).
Set the response body as an iolist
-
@@ -118,7 +118,7 @@ http://www.gnu.org/software/src-highlite --> ], Req0).
Tell Cowboy to send data from a file
-
@@ -126,7 +126,7 @@ http://www.gnu.org/software/src-highlite --> Req = cowboy_req:set_resp_body({sendfile, 0, Size, Filename}, Req0).
Clear any previously set response body
-
@@ -169,6 +169,8 @@ http://www.gnu.org/software/src-highlite --> +
  • 2.7
  • +
  • 2.6
  • 2.5
  • -- cgit v1.2.3