Commit History

Author SHA1 Message Date
  Loïc Hoguin 0b13835bfe Fix tests for cowboy_dispatcher:split_path/1. 14 years ago
  Loïc Hoguin 8e55c2e2b8 Fix spec for cowboy_dispatcher:split_path/1. 14 years ago
  Loïc Hoguin 193968d53e Fix spec for cowboy_dispatcher:split_host/1. 14 years ago
  Loïc Hoguin 7cacb88fec Introduce cowboy_http_req:body/1 to read the full request body. 14 years ago
  Loïc Hoguin e9781e77f1 Make sure error_response always returns ok. 14 years ago
  Loïc Hoguin e3dc9b2694 Add specs to ensure_response and change the clauses order. 14 years ago
  Loïc Hoguin 8b02992e6a Skip the request body if it hasn't been read by the handler. 14 years ago
  Loïc Hoguin e40001a884 Ensure a response is sent when the handler doesn't reply anything. 14 years ago
  Loïc Hoguin a1e56a2fba Move the error response code into a separate function. 14 years ago
  Loïc Hoguin 71b31cee92 Make sure we can only reply to an HTTP request inside Handler:handle. 14 years ago
  Loïc Hoguin d69d0adfa7 Lazy-retrieve the peer name and port to avoid wasting time each request. 14 years ago
  Loïc Hoguin f5e7178651 Change a @todo for Handler:init possible return values. 14 years ago
  Loïc Hoguin a3fff2f5b0 Rename a variable in cowboy_http_protocol for clarity. 14 years ago
  Loïc Hoguin df35916d2a Allow code reloading inside the cowboy_http_protocol module during keep-alive. 14 years ago
  Loïc Hoguin c4d4b6a051 Rename the title for Getting Started in the README. 14 years ago
  Loïc Hoguin 6fad3f7824 Default the connection to keep-alive on HTTP/1.1 and close on 1.0. 14 years ago
  Loïc Hoguin 896b854908 Remove a dead code clause for split_path. 14 years ago
  Loïc Hoguin b874b28561 Save the raw path string in the request. 14 years ago
  Loïc Hoguin 8085529f48 Save the raw host string in the request. 14 years ago
  Loïc Hoguin bd3a646316 Protect the calls to the handler using catch. 14 years ago
  Loïc Hoguin a4f8bb6573 Add support for the '*' path. 14 years ago
  Loïc Hoguin 2c52a30b0a Rewrite the dispatcher to take a list of host each having a list of paths. 14 years ago
  Loïc Hoguin ebe638165e Ignore all extra Host values sent in the request. 14 years ago
  Loïc Hoguin 673c7e2cb5 Reply with error 501 on all non absolute path URIs for now. 14 years ago
  Loïc Hoguin 7ef67d08fe Reply with error 400 on all bad Request-Lines received. 14 years ago
  Loïc Hoguin c9eb3ce5fc Ignore empty lines when expecting the Request-Line. 14 years ago
  Loïc Hoguin db715a3eb1 Comparisons of host names MUST be case-insensitive. 14 years ago
  Loïc Hoguin 2131a935e6 Notify the client that we're closing the connection after the error reply. 14 years ago
  Loïc Hoguin 408f167621 Move the reply function to cowboy_http_req. 14 years ago
  Loïc Hoguin c6ad0273a8 Introduce Handler:terminate to cleanup the handler's state. 14 years ago