[erlang-questions] Cowboy - cowboy_req:reply

Theepan vasdeveloper@REDACTED
Mon Aug 1 16:40:16 CEST 2016


Hi Team,

What is the return value of cowboy_req:reply? {ok, Req2} or Req2.

The document says the below, but the real return value is Req2.


{ok, Req2} = cowboy_req:reply(200, [
    {<<"content-type">>, <<"text/plain">>}
], "Hello world!", Req).


OR


Req2 = cowboy_req:reply(200, [
    {<<"content-type">>, <<"text/plain">>}
], "Hello world!", Req).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160801/1632478f/attachment.htm>


More information about the erlang-questions mailing list