[erlang-questions] problems with cowboy hello world
Thu Mar 12 13:51:59 CET 2015
On 03/12/2015 01:07 AM, Kenneth Lakin wrote:
> On 03/11/2015 09:18 PM, Garry Hodgson wrote:
>> i'm trying to port a webmachine application to cowboy,
>> with puzzling results so far. i've got all the plumbing set
>> up, and my handlers get called. i actually need to use
>> cowboy_rest_handler, but am trying first to get basic http
>> working. so i copied the example from the User Guide:
> If you're using Cowboy 1.0.x, (as I am), then I learned that you can't
> actually make a response in init/3. (I got exactly the same stacktrace
> that you're reporting.) All work has to be done in handle/2.
> This *should* be a correct Cowboy 1.0.x Hello World:
indeed, that worked. thanks!
AT&T Chief Security Office (CSO)
"This e-mail and any files transmitted with it are AT&T property, are confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not one of the named recipient(s) or otherwise have reason to believe that you have received this message in error, please notify the sender and delete this message immediately from your computer. Any other use, retention, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited."
More information about the erlang-questions