0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 04:10:24 +00:00

Commit graph

  • c3a36246b5 Explicitly ignore the return value of cowboy_http_req:reply in error_response. Loïc Hoguin 2011-03-22 12:27:34 +01:00
  • d4c071c2d0 Fix the type spec for path_tokens, a list of *non empty* strings. Loïc Hoguin 2011-03-22 12:26:07 +01:00
  • 06ff8607ed Add more dialyzer warnings to rebar.config. Loïc Hoguin 2011-03-22 12:25:43 +01:00
  • 3b6f3004a6 Add a rebar.config file with useful options. Loïc Hoguin 2011-03-21 23:36:51 +01:00
  • 1ebfa5eb1f Fix spec for cowboy_tcp_transport:close/1. Loïc Hoguin 2011-03-21 22:57:07 +01:00
  • 545116edfa Fix spec for cowboy_http_req:reply/4. Loïc Hoguin 2011-03-21 22:47:37 +01:00
  • fdd9d4c0ef Fix spec for cowboy_http_req:qs_vals/1. Loïc Hoguin 2011-03-21 22:33:42 +01:00
  • 0c0b75f76b Fix spec for the #http_spec.path record field. Loïc Hoguin 2011-03-21 22:32:02 +01:00
  • c366343ac6 Fix spec for cowboy_http_protocol:init/3. Loïc Hoguin 2011-03-21 22:22:30 +01:00
  • 0b13835bfe Fix tests for cowboy_dispatcher:split_path/1. Loïc Hoguin 2011-03-21 22:18:24 +01:00
  • 8e55c2e2b8 Fix spec for cowboy_dispatcher:split_path/1. Loïc Hoguin 2011-03-21 22:13:35 +01:00
  • 193968d53e Fix spec for cowboy_dispatcher:split_host/1. Loïc Hoguin 2011-03-21 22:12:23 +01:00
  • 7cacb88fec Introduce cowboy_http_req:body/1 to read the full request body. Loïc Hoguin 2011-03-21 21:28:24 +01:00
  • e9781e77f1 Make sure error_response always returns ok. Loïc Hoguin 2011-03-21 17:52:27 +01:00
  • e3dc9b2694 Add specs to ensure_response and change the clauses order. Loïc Hoguin 2011-03-21 17:51:21 +01:00
  • 8b02992e6a Skip the request body if it hasn't been read by the handler. Loïc Hoguin 2011-03-21 17:26:00 +01:00
  • e40001a884 Ensure a response is sent when the handler doesn't reply anything. Loïc Hoguin 2011-03-20 19:38:45 +01:00
  • a1e56a2fba Move the error response code into a separate function. Loïc Hoguin 2011-03-20 19:29:32 +01:00
  • 71b31cee92 Make sure we can only reply to an HTTP request inside Handler:handle. Loïc Hoguin 2011-03-20 18:03:11 +01:00
  • d69d0adfa7 Lazy-retrieve the peer name and port to avoid wasting time each request. Loïc Hoguin 2011-03-20 16:09:05 +01:00
  • f5e7178651 Change a @todo for Handler:init possible return values. Loïc Hoguin 2011-03-20 15:30:29 +01:00
  • a3fff2f5b0 Rename a variable in cowboy_http_protocol for clarity. Loïc Hoguin 2011-03-20 15:10:58 +01:00
  • df35916d2a Allow code reloading inside the cowboy_http_protocol module during keep-alive. Loïc Hoguin 2011-03-20 14:24:43 +01:00
  • c4d4b6a051 Rename the title for Getting Started in the README. Loïc Hoguin 2011-03-20 14:15:58 +01:00
  • 6fad3f7824 Default the connection to keep-alive on HTTP/1.1 and close on 1.0. Loïc Hoguin 2011-03-20 00:09:15 +01:00
  • 896b854908 Remove a dead code clause for split_path. Loïc Hoguin 2011-03-20 00:03:02 +01:00
  • b874b28561 Save the raw path string in the request. Loïc Hoguin 2011-03-20 00:01:29 +01:00
  • 8085529f48 Save the raw host string in the request. Loïc Hoguin 2011-03-19 23:57:23 +01:00
  • bd3a646316 Protect the calls to the handler using catch. Loïc Hoguin 2011-03-19 19:51:44 +01:00
  • a4f8bb6573 Add support for the '*' path. Loïc Hoguin 2011-03-19 18:53:59 +01:00
  • 2c52a30b0a Rewrite the dispatcher to take a list of host each having a list of paths. Loïc Hoguin 2011-03-19 17:42:03 +01:00
  • ebe638165e Ignore all extra Host values sent in the request. Loïc Hoguin 2011-03-19 16:49:06 +01:00
  • 673c7e2cb5 Reply with error 501 on all non absolute path URIs for now. Loïc Hoguin 2011-03-19 14:46:45 +01:00
  • 7ef67d08fe Reply with error 400 on all bad Request-Lines received. Loïc Hoguin 2011-03-19 14:40:39 +01:00
  • c9eb3ce5fc Ignore empty lines when expecting the Request-Line. Loïc Hoguin 2011-03-19 14:38:31 +01:00
  • db715a3eb1 Comparisons of host names MUST be case-insensitive. Loïc Hoguin 2011-03-19 14:16:17 +01:00
  • 2131a935e6 Notify the client that we're closing the connection after the error reply. Loïc Hoguin 2011-03-19 02:21:55 +01:00
  • 408f167621 Move the reply function to cowboy_http_req. Loïc Hoguin 2011-03-18 22:38:26 +01:00
  • c6ad0273a8 Introduce Handler:terminate to cleanup the handler's state. Loïc Hoguin 2011-03-18 13:47:37 +01:00
  • 5e80e4baac Handler:init/2 should also return the Request in case it changed. Loïc Hoguin 2011-03-18 01:52:46 +01:00
  • f53235549d Introduce Handler:init/2 for initializing the handler state. Loïc Hoguin 2011-03-18 00:15:46 +01:00
  • a77b906b9f Don't crash on Transport:controlling_process return in the acceptor. Loïc Hoguin 2011-03-17 22:22:09 +01:00
  • 0069e2465d Remove a superfluous terminate call in error_terminate. Loïc Hoguin 2011-03-17 22:06:39 +01:00
  • 786a05a129 Run the dispatcher as early as possible to quickly dismiss 404 errors. Loïc Hoguin 2011-03-17 22:02:47 +01:00
  • da72255940 Initial commit. Loïc Hoguin 2011-03-07 22:59:22 +01:00