Age | Commit message (Collapse) | Author | |
---|---|---|---|
2011-03-21 | Fix spec for cowboy_tcp_transport:close/1. | Loïc Hoguin | |
Apparently the documentation is wrong for gen_tcp:close/1, it returns only ok. | |||
2011-03-21 | Fix spec for cowboy_http_req:reply/4. | Loïc Hoguin | |
2011-03-21 | Fix spec for cowboy_http_req:qs_vals/1. | Loïc Hoguin | |
2011-03-21 | Fix spec for the #http_spec.path record field. | Loïc Hoguin | |
2011-03-21 | Fix spec for cowboy_http_protocol:init/3. | Loïc Hoguin | |
2011-03-21 | Fix tests for cowboy_dispatcher:split_path/1. | Loïc Hoguin | |
2011-03-21 | Fix spec for cowboy_dispatcher:split_path/1. | Loïc Hoguin | |
2011-03-21 | Fix spec for cowboy_dispatcher:split_host/1. | Loïc Hoguin | |
2011-03-21 | Introduce cowboy_http_req:body/1 to read the full request body. | Loïc Hoguin | |
2011-03-21 | Make sure error_response always returns ok. | Loïc Hoguin | |
2011-03-21 | Add specs to ensure_response and change the clauses order. | 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 | Ensure a response is sent when the handler doesn't reply anything. | Loïc Hoguin | |
2011-03-20 | Move the error response code into a separate function. | 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 | Lazy-retrieve the peer name and port to avoid wasting time each request. | Loïc Hoguin | |
2011-03-20 | Change a @todo for Handler:init possible return values. | Loïc Hoguin | |
2011-03-20 | Rename a variable in cowboy_http_protocol for clarity. | Loïc Hoguin | |
2011-03-20 | Allow code reloading inside the cowboy_http_protocol module during keep-alive. | Loïc Hoguin | |
2011-03-20 | Rename the title for Getting Started in the README. | Loïc Hoguin | |
2011-03-20 | Default the connection to keep-alive on HTTP/1.1 and close on 1.0. | Loïc Hoguin | |
2011-03-20 | Remove a dead code clause for split_path. | Loïc Hoguin | |
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-19 | Protect the calls to the handler using catch. | Loïc Hoguin | |
* Handler:init shouldn't reply anything; send an error 500. * Handler:handle may have sent something to the client; close the socket. * Handler:terminate failed to clean itself up. Close the socket. | |||
2011-03-19 | Add support for the '*' path. | Loïc Hoguin | |
Mostly used by the following request: OPTIONS * HTTP/1.1 | |||
2011-03-19 | Rewrite the dispatcher to take a list of host each having a list of paths. | Loïc Hoguin | |
* Makes more sense to parse the host only once instead of for each path. * Allows proper handling of: If the host is not a valid host on the server, the response MUST be a 400 (Bad Request) error. | |||
2011-03-19 | Ignore all extra Host values sent in the request. | Loïc Hoguin | |
2011-03-19 | Reply with error 501 on all non absolute path URIs for now. | Loïc Hoguin | |
2011-03-19 | Reply with error 400 on all bad Request-Lines received. | Loïc Hoguin | |
2011-03-19 | Ignore empty lines when expecting the Request-Line. | Loïc Hoguin | |
In the interest of robustness, servers SHOULD ignore any empty line(s) received where a Request-Line is expected. In other words, if the server is reading the protocol stream at the beginning of a message and receives a CRLF first, it should ignore the CRLF. | |||
2011-03-19 | Comparisons of host names MUST be case-insensitive. | Loïc Hoguin | |
2011-03-19 | Notify the client that we're closing the connection after the error reply. | Loïc Hoguin | |
2011-03-18 | Move the reply function to cowboy_http_req. | Loïc Hoguin | |
2011-03-18 | Introduce Handler:terminate to cleanup the handler's state. | Loïc Hoguin | |
2011-03-18 | Handler:init/2 should also return the Request in case it changed. | Loïc Hoguin | |
2011-03-18 | Introduce Handler:init/2 for initializing the handler state. | Loïc Hoguin | |
We need an init function in order to process upgrade instructions for protocols like WebSockets, but also to request an active receive mode for long-polling connections, both of which will be implemented at a later time. | |||
2011-03-17 | Don't crash on Transport:controlling_process return in the acceptor. | Loïc Hoguin | |
Crashes can happen if we close the connection too fast, leading to controlling_process returning {error, closed} instead of ok. This can happen when we receive bad requests, reply with 404 Not Found and more. Simply do not match the return value of controlling_process to avoid this. | |||
2011-03-17 | Remove a superfluous terminate call in error_terminate. | Loïc Hoguin | |
2011-03-17 | Run the dispatcher as early as possible to quickly dismiss 404 errors. | Loïc Hoguin | |
2011-03-17 | Initial commit. | Loïc Hoguin | |