Loïc Hoguin
8497c8bbcd
Don't use decode_packet/3 for parsing the request-line
...
First step in making all methods and header names binaries to
get rid of many inconsistencies caused by decode_packet/3.
Methods are all binary now. Note that since they are case
sensitive, the usual methods become <<"GET">>, <<"POST">> and so on.
2012-09-21 08:54:57 +02:00
Loïc Hoguin
8d5f8db90a
Improve consistency of return types for cowboy_req API
...
The signature of parse_header, body_qs, multipart_data and
the set_resp_* functions has changed.
See the cowboy_req module edoc for more details.
2012-09-17 13:56:58 +02:00
Loïc Hoguin
f39c001c03
Rename cowboy_http_static to cowboy_static
2012-08-27 13:53:27 +02:00
Loïc Hoguin
6d84afd16d
Rename cowboy_http_rest to cowboy_rest
2012-08-27 13:39:59 +02:00
Loïc Hoguin
d3dcaf109b
Rename cowboy_http_req to cowboy_req
2012-08-27 13:28:57 +02:00
Loïc Hoguin
e4124de2c7
Switch to Ranch for connection handling
...
This is the first of many API incompatible changes.
You have been warned.
2012-08-27 11:50:35 +02:00
Loïc Hoguin
f212cafad2
Add a REST Hello World example
2012-07-22 05:09:56 +02:00
Loïc Hoguin
6ea32d605d
Add a Chunked Hello World example
2012-07-22 05:09:56 +02:00
Loïc Hoguin
73c07376bb
Add a POST echo example
2012-07-22 05:09:56 +02:00
Loïc Hoguin
370b3d9648
Add a GET echo example
2012-07-22 05:09:56 +02:00
Loïc Hoguin
86f9f481c8
Add a simple Static File Server example
2012-07-14 20:24:47 +02:00
Loïc Hoguin
b8a25b156c
Add an Hello World example
2012-07-13 10:15:22 +02:00
Loïc Hoguin
9baf3e2ae9
Add an examples/ directory containing a link to cowboy_examples
2012-02-20 08:42:45 +01:00