Permalink
Switch branches/tags
Nothing to show
Commits on Sep 30, 2011
  1. Add cowboy_protocol behaviour

    committed Sep 29, 2011
Commits on Sep 28, 2011
  1. Improve the error message for HTTP handlers

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

    Loïc Hoguin committed Sep 28, 2011
  3. add cacertfile configuration

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

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

    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.
    Loïc Hoguin committed Sep 22, 2011
Commits on Sep 15, 2011
  1. Allow websocket handlers to hibernate from the websocket_init/3 function

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

    Krishnamurthy, Kristol, Mogul: "Key Differences between HTTP/1.0
    and HTTP/1.1", "Internet address conservation".
    http://www8.org/w8-papers/5c-protocols/key/key.html
    
    Fixes issue #35 reported by Alex Kropivny.
    Loïc Hoguin committed Sep 13, 2011
  2. Reset the max number of empty lines between keepalive requests

    Fixes issue #47.
    Loïc Hoguin committed Sep 13, 2011
  3. Improve the Cowboy definition in the README

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

    Fix the handling of HEAD requests
    Loïc Hoguin committed Sep 6, 2011
  2. Fix the handling of the HEAD requests

    Responses to the HEAD requests used to include an response body.
    asabil committed Sep 6, 2011
Commits on Sep 5, 2011
  1. Update version to 0.3.0 to continue with development

    Loïc Hoguin committed Sep 5, 2011
  2. Update version to 0.2.0

    Loïc Hoguin committed Sep 5, 2011
  3. Update AUTHORS file

    Loïc Hoguin committed Sep 5, 2011
  4. Tweak the .travis.yml file

    We want to run 'make tests' and not that rebar command.
    Also remove R14B as quoted doesn't work with it.
    Loïc Hoguin committed Sep 5, 2011
  5. Add .travis.yml file

    Loïc Hoguin committed Sep 5, 2011
Commits on Aug 23, 2011
  1. Add WebSocket drafts 7, 8, 9 and 10 implementation

    The implementation is only partial for now but should work for
    all browsers implementing it.
    Loïc Hoguin committed Aug 23, 2011
  2. Ensure header names are handled in a case insensitive manner

    To this end we are formatting the header names just like OTP does
    except we do it for names of up to 32 characters, as there are
    widely used header names of more than 20 characters, the limit that
    OTP follows currently. An example of such header name would be
    Sec-Websocket-Version.
    
    The formatting itself is fairly simple: an uppercase character at
    the start and after dashes, everything else lowercase.
    Loïc Hoguin committed Aug 23, 2011
Commits on Aug 11, 2011
  1. Use cowboy_clock types in cowboy_cookies instead of calendar

    Until calendar exports them at least.
    Loïc Hoguin committed Aug 11, 2011
  2. Add Transport:setopts/2 note for writing protocols

    Loïc Hoguin committed Aug 11, 2011
Commits on Aug 10, 2011
  1. Give the ListenerPid to the protocol on startup

    Also sends a message 'shoot' that can be received by the protocol
    to make sure Cowboy has had enough time to fully initialize the
    socket. This message should be received before any socket-related
    operations are performed.
    
    WebSocket request connections are now moved from the pool 'default'
    to the pool 'websocket', meaning we can have a lot of running
    WebSockets despite having a low 'max_connections' setting.
    Loïc Hoguin committed Aug 10, 2011
  2. Introduce cowboy_listener for managing a listener

    Currently only supports limiting the maximum number of
    connections by managing connection pools.
    Loïc Hoguin committed Aug 9, 2011
Commits on Jul 26, 2011
  1. Fix cookie tests and specs

    Loïc Hoguin committed Jul 26, 2011
  2. Small cosmetic changes and doc update to the cookie patch

    Loïc Hoguin committed Jul 26, 2011
  3. Fail early in cookie-related API functions

    bfrog committed with Loïc Hoguin Jul 18, 2011
  4. Implement cookies in cowboy_http_req

    bfrog committed with Loïc Hoguin Jul 8, 2011
  5. Add cowboy_cookies for cookie creation and parsing

    Based on Mochi Media, Inc.'s work in Mochiweb.
    
    Conflicts:
    
    	rebar.config
    bfrog committed with Loïc Hoguin May 25, 2011
  6. Update quoted to 1.0.3 to fix outstanding issues

    Magnus Klaar updated the PropEr tests and it should be fine now.
    Loïc Hoguin committed Jul 26, 2011
  7. Add a PropEr test for cowboy_dispatcher:split_host/1

    Mostly thanks to Magnus Klaar as it took me a while to figure
    out how PropEr tests had to be written.
    Loïc Hoguin committed Jul 26, 2011
Commits on Jul 20, 2011
  1. URL decode paths

    This fixes issue #33.
    Loïc Hoguin committed Jul 20, 2011
  2. URL decode query strings

    Should be good for both GET and POST query strings.
    
    This adds https://github.com/klaar/quoted.erl as a dependency.
    Props to klaar for this code.
    Loïc Hoguin committed Jul 20, 2011
Commits on Jul 19, 2011
  1. Separate message and packet handling for websockets

    Improves the readability of websocket handler code by having
    two functions: websocket_handle/3 handles the packets received
    from the socket, removing the tuple construct that was otherwise
    needed, so only websocket_handle(Data, Req, State) is needed now;
    websocket_info/3 handles the messages that the websocket handler
    process received, as websocket_info(Info, Req, State).
    
    Both functions return values are handled identically by Cowboy
    so nothing changes on that end.
    Loïc Hoguin committed Jul 19, 2011
Commits on Jul 18, 2011
  1. Fail fast when a wrong type is given to API functions

    Idea given by bfrog, fixes issue #34.
    Loïc Hoguin committed Jul 18, 2011