Age | Commit message (Collapse) | Author | |
---|---|---|---|
2011-07-26 | Implement cookies in cowboy_http_req | Tom Burdick | |
2011-05-25 | Refresh the type specifications. | Loïc Hoguin | |
Following discussions on #erlounge. Also fixes compilation in R14B03 and fixes a few underspecs dialyzer warnings. | |||
2011-05-09 | Implement path_info feature | Anthony Ramine | |
The dispatcher now accepts '...' as the leading segment of Host and the trailing segment of Path, this special atom matches any remaining path tail. When given "cowboy.bugs.dev-extend.eu", host rule ['...', <<"dev-extend">>, <<"eu">>] matches and fills host_info with [<<"cowboy">>, <<"bugs">>]. When given "/a/b/c/d", path rule [<<"a">>, <<"b">>, '...'] matches and fills path_info with [<<"c">>, <<"d">>]. | |||
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 | Remove the include/types.hrl file. | Loïc Hoguin | |
2011-04-18 | Replace port_number() by ip_port() from kernel/include/inet.hrl. | Loïc Hoguin | |
2011-04-18 | Replace posix() by atom(), for now. | Loïc Hoguin | |
The type isn't exported by OTP so we don't win much. Also, inet.erl and file.erl define posix() différently, so OTP needs to stop being so confuse in the first place before we can attempt to use it properly. | |||
2011-04-18 | Move the type application_start_type() into cowboy_app. | Loïc Hoguin | |
2011-04-18 | Move the dispatcher related types into cowboy_dispatcher. | Loïc Hoguin | |
2011-04-18 | Rename match() into match_rule(). | Loïc Hoguin | |
2011-04-18 | Rename dispatch() into dispatch_rules(). | Loïc Hoguin | |
2011-04-18 | Rename dispatch_rules() into dispatch_rule(). | Loïc Hoguin | |
2011-04-18 | Move HTTP types definitions to include/http.hrl (for now). | Loïc Hoguin | |
2011-04-18 | Move the opaque type sslsocket() out of include/types.hrl. | 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-22 | Fix the type spec for path_tokens, a list of *non empty* strings. | 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_dispatcher:split_host/1. | 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-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-18 | Move the reply function to cowboy_http_req. | Loïc Hoguin | |
2011-03-17 | Initial commit. | Loïc Hoguin | |