Age | Commit message (Collapse) | Author | |
---|---|---|---|
2011-05-08 | Add chunked reply support. | Loïc Hoguin | |
Send the status line and headers using cowboy_http_req:chunked_reply/3, and individual chunks with cowboy_http_req:chunk/2. | |||
2011-05-05 | Switch the HTTP protocol to use binary packets instead of lists. | Loïc Hoguin | |
The server now does a single recv (or more, but only if needed) which is then sent to erlang:decode_packet/3 multiple times. Since most requests are smaller than the default MTU on many platforms, we benefit from this greatly. In the case of requests with a body, the server usually read at least part of the body on the first recv. This is bufferized properly and used when later retrieving the body. In the case of pipelined requests, we can end up reading many requests in a single recv, which are then handled properly using only the buffer containing the received data. | |||
2011-05-04 | Add cowboy_http_req:port/1. | Loïc Hoguin | |
Returns the port given in the Host header if present, otherwise the default port of 443 for HTTPS and 80 for HTTP is returned. | |||
2011-04-18 | Replace port_number() by ip_port() from kernel/include/inet.hrl. | Loïc Hoguin | |
2011-04-18 | Move the dispatcher related types into cowboy_dispatcher. | Loïc Hoguin | |
2011-04-18 | Move HTTP types definitions to include/http.hrl (for now). | Loïc Hoguin | |
2011-04-18 | Use the inet:socket() type instead of the user-defined one. | Loïc Hoguin | |
2011-04-17 | Use the inet:ip_address() type instead of the user-defined one. | Loïc Hoguin | |
2011-03-27 | Fix the type spec for qs_vals, a list of key/values. | Loïc Hoguin | |
2011-03-21 | Fix spec for the #http_spec.path record field. | Loïc Hoguin | |
2011-03-21 | Skip the request body if it hasn't been read by the handler. | Loïc Hoguin | |
2011-03-20 | Make sure we can only reply to an HTTP request inside Handler:handle. | Loïc Hoguin | |
Of course since requests are a record the response state can be explicitly overriden, but standard use prevents errors by making sure only one reply is sent. | |||
2011-03-20 | Save the raw path string in the request. | Loïc Hoguin | |
2011-03-19 | Save the raw host string in the request. | Loïc Hoguin | |
2011-03-18 | Move the reply function to cowboy_http_req. | Loïc Hoguin | |
2011-03-17 | Initial commit. | Loïc Hoguin | |