Commit History

Author SHA1 Message Date
  Loïc Hoguin 2beb5c8206 Move the dispatcher related types into cowboy_dispatcher. 14 years ago
  Loïc Hoguin ef2673b61e Rename dispatch() into dispatch_rules(). 14 years ago
  Loïc Hoguin 15dc645596 Use the inet:socket() type instead of the user-defined one. 14 years ago
  Loïc Hoguin 73b120b68e Fix a pattern matching bug in cowboy_http_protocol:handler_init/2. 14 years ago
  Loïc Hoguin 6ec20b736e Limit the number of empty lines to allow before the request-line. 14 years ago
  Loïc Hoguin 0fad6c6fde Don't crash on errors while receiving headers; throw an error 500 instead. 14 years ago
  Loïc Hoguin d8a2fcf258 Don't automatically retrieve the peer information for the 'OPTIONS' method. 14 years ago
  Loïc Hoguin 44e6f60b91 Handle properly the default Connection value for HTTP/1.0. 14 years ago
  Loïc Hoguin d0d9b0e8b3 Use a more efficient variant of string:to_lower to improve performance. 14 years ago
  Loïc Hoguin 5726aa3d85 Match early in connection_to_atom for a small performance improvement. 14 years ago
  Loïc Hoguin 9fe8141d2a Allow Handler:init/3 to request a protocol upgrade. 14 years ago
  Loïc Hoguin 7888be00d2 Forward transport and protocol name to Handler:init. 14 years ago
  Loïc Hoguin c3a36246b5 Explicitly ignore the return value of cowboy_http_req:reply in error_response. 14 years ago
  Loïc Hoguin c366343ac6 Fix spec for cowboy_http_protocol:init/3. 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 6fad3f7824 Default the connection to keep-alive on HTTP/1.1 and close on 1.0. 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