Skip to content


Subversion checkout URL

You can clone with
Download ZIP
branch: master
Commits on Oct 7, 2011
Commits on Oct 6, 2011
  1. Allow HTTP handlers to skip the handle/2 step in init/3

    Loïc Hoguin authored
    You can now return {shutdown, Req, State} from Handler:init/3
    to skip the handle/2 step.
    Also allow init/3 function to send responses.
  2. Add R14B to the travis-ci configuration file

    Loïc Hoguin authored
  3. Add R14B04 to the travis-ci configuration file

    Loïc Hoguin authored
  4. Close the connection when the application sends Connection: close

    Loïc Hoguin authored
    Now Cowboy checks headers sent to the client for the 'Connection'
    header value, parses it, and checks whether it contains a 'close'
    or 'keep-alive' value. It makes sure to close or keep the connection
    alive depending on the value found there, if any.
    Also change chunked replies to not close the connection by default
    unless the application requests it.
Commits on Oct 5, 2011
  1. Fix hixi76_location/5 when transport is tcp and port is 443

    Loïc Hoguin authored
    I know it is unlikely to use plain TCP on port 443, where SSL is
    usually used, but a bug is still a bug, and as such it should be fixed.
    Now the port will be probably appended to the location when port 443
    is used without SSL.
  2. Fix a crash in websocket_handshake when cowboy_http_req:compact/1 is …

    Loïc Hoguin authored
    Also add a call to compact/1 in the websocket test handler so we may
    catch bugs related to it faster later on.
  3. Remove the 'HEAD' chunked_reply/3 clause

    Loïc Hoguin authored
    From the RFC:
      The HEAD method is identical to GET except that the server MUST NOT
      return a message-body in the response. The metainformation contained
      in the HTTP headers in response to a HEAD request SHOULD be identical
      to the information sent in response to a GET request.
  4. Skip deps when generating docs

    Loïc Hoguin authored
  5. Parse 'Connection' headers as a list of tokens

    Loïc Hoguin authored
    Replaces the 'Connection' interpretation in cowboy_http_protocol
    from raw value to the parsed value, looking for a single token
    matching close/keep-alive instead of the whole raw value (which
    could contain more than one token, for example with Firefox 6+
    using websocket).
    Introduce the functions cowboy_http_req:parse_header/2 and /3
    to semantically parse the header values and return a proper
    Erlang term.
Commits on Oct 4, 2011
  1. Remove the connection information from the HTTP protocol state

    Loïc Hoguin authored
    Use the Req connection information instead.
  2. Close connection on all errors

    Loïc Hoguin authored
    And use a proper cowboy_http_req:reply/4 call for the 204 response.
  3. Small doc clarification

    Loïc Hoguin authored
  4. Do not send a 408 response if the Request-Line wasn't fully received

    Loïc Hoguin authored
    The server should not send a response if there wasn't at least
    the beginning of a request sent (the Request-Line).
Commits on Oct 3, 2011
  1. @skarab

    Fix byte-by-byte Websocket handling

    skarab authored
    If the websocket frame handling code in cowboy_http_websocket receives
    only 1 byte at a time, it fails with a badmatch in
    cowboy_http_websocket:websocket_data/4. This commit fixes the problem
    and introduces a test of the correct behaviour.
Commits on Oct 1, 2011
  1. Get rid of a binary construct in cowboy_http_websocket

    Loïc Hoguin authored
    Thanks to @nivertech for pointing it out in ticket #61.
  2. Get rid of a binary construct in cowboy_http_req

    Loïc Hoguin authored
    Thanks to @klaar for pointing it out in ticket #59.
Commits on Sep 30, 2011
  1. @hakvroot

    Add cowboy_protocol behaviour

    hakvroot authored
Commits on Sep 29, 2011
  1. add note to split_path/1 and path/1 on escaped /

    Magnus Klaar authored
Commits on Sep 28, 2011
  1. Improve the error message for HTTP handlers

    Loïc Hoguin authored
    Making it look more like the websocket handler error messages.
  2. Merge remote-tracking branch 'smarkets/cacertfile'

    Loïc Hoguin authored
  3. add cacertfile configuration

    Steven Gravell authored
Commits on Sep 26, 2011
  1. Merge remote-tracking branch 'nivertech/master'

    Loïc Hoguin authored
  2. @oribrost
Commits on Sep 22, 2011
  1. Add a test for websocket hibernate + timeout and fix this use case

    Loïc Hoguin authored
    The issue was that we were calling erlang:hibernate before a
    receive .. after .. end call. Erlang hibernates the process before
    reaching the receive instruction and we therefore couldn't enter
    the after clause when hibernating.
    This is now fixed by using erlang:send_after instead and receiving
    that message instead of using an after clause.
Commits on Sep 15, 2011
  1. Allow websocket handlers to hibernate from the websocket_init/3 function

    Loïc Hoguin authored
    Also improve the documentation about hibernate.
Commits on Sep 13, 2011
  1. 'Host' header is optional in HTTP/1.0

    Loïc Hoguin authored
    Krishnamurthy, Kristol, Mogul: "Key Differences between HTTP/1.0
    and HTTP/1.1", "Internet address conservation".
    Fixes issue #35 reported by Alex Kropivny.
  2. Reset the max number of empty lines between keepalive requests

    Loïc Hoguin authored
    Fixes issue #47.
  3. Improve the Cowboy definition in the README

    Loïc Hoguin authored
Commits on Sep 6, 2011
  1. Merge pull request #46 from tillitech/master

    Loïc Hoguin authored
    Fix the handling of HEAD requests
Something went wrong with that request. Please try again.