meh / cauldron

I wonder what kind of Elixir is boiling in there.
74 stars 7 forks source link

Missing piece ? #5

Closed benzen closed 9 years ago

benzen commented 9 years ago

I'm pretty new to elixir so please excuse me if my question are silly.

I'm trying to use cauldron With an exemple found here

defmodule Foo do
  # respond to a GET / request with "Hello, World!"
  def handle("GET", %URI{path: "/file"}, req) do
    req.reply(200, "Hello, World!")
  end

end
Cauldron.start Foo, port: 7786

But i have this error message when i head up to the page localhost:7786/file

21:54:11.719 [error] Error in process <0.247.0> with exit value: {{badmatch,[<<9 bytes>>,<<44 bytes>>,<<1 byte>>]},[{'Elixir.HTTProt.Headers','-from_string/2-lc$^1/1-0-',1,[{file,"lib/httprot/headers.ex"},{line,142}]},{'Elixir.HTTProt.Headers','-from_string/2-lc$^1/1-0-',1,[{file,"lib/httprot/headers.ex"},{line,141}]},{'Elixir.HTTProt.Headers'...

Is there something that i'm missing ?

benzen commented 9 years ago

This issue is not related to this project, i assume after re reading the message.

meh commented 9 years ago

It is actually related to this, I forgot to update the README example :panda_face:

I update the example in the README, check examples/rest.ex for a better example tho.

benzen commented 9 years ago

I've moved this issue to the project httproto