Permalink
Switch branches/tags
Nothing to show
Commits on May 10, 2012
  1. Update README.md

    committed May 10, 2012
Commits on May 5, 2012
  1. Add a test checking requests with size around the MTU

    Loïc Hoguin committed May 5, 2012
  2. Merge branch 'patch-1' of https://github.com/yrashk/cowboy

    Loïc Hoguin committed May 5, 2012
  3. Add a test for empty path segments

    Loïc Hoguin committed May 5, 2012
Commits on May 4, 2012
  1. Merge branch 'response-hook'

    Loïc Hoguin committed May 4, 2012
  2. Add an 'onresponse' hook

    This new protocol option is a fun.
    
    It expects 3 args: the Status code used in the reply (this is the
    cowboy_http:status() type, it can be an integer or a binary), the
    headers that will be sent in the reply, and the Req. It should
    only return a possibly modified Req. This can be used for many
    things like error logging or custom error pages.
    
    If a reply is sent inside the hook, then Cowboy will discard the
    reply initially sent. Extra caution must be used in the handlers
    making use of inline chunked replies as they will throw an error.
    
    This fun cannot be used as a filter, you can either observe the
    reply sent or discard it to send a different one instead.
    
    The hook will not be called for replies sent from inside the hook.
    Loïc Hoguin committed Apr 30, 2012
Commits on May 3, 2012
Commits on May 2, 2012
  1. Add a test for HTTP handlers loop timeouts

    Loïc Hoguin committed May 2, 2012
Commits on Apr 30, 2012
  1. Refactor the reply functions

    Loïc Hoguin committed Apr 30, 2012
  2. Merge branch 'cowboy-client'

    Loïc Hoguin committed Apr 30, 2012
Commits on Apr 29, 2012
  1. Fix and rework the HTTP test suite

    Use a proper HTTP client to run all tests. This client is currently
    undocumented and should not be used.
    
    Includes a few fixes:
    
    * Fix a bug in the max_keepalive test
    * Fix a bug with max_keepalive handling
    * Fix a bug in stream_body/1 where data was lost under some conditions
    
    The tests now run quite faster than before.
    
    All the tests now run twice: once for TCP, once for SSL.
    Loïc Hoguin committed Apr 28, 2012
Commits on Apr 28, 2012
  1. Add .cowboy.plt to the gitignore

    Loïc Hoguin committed Apr 28, 2012
Commits on Apr 24, 2012
Commits on Apr 13, 2012
  1. Add a clean-docs target to the Makefile

    Loïc Hoguin committed Apr 13, 2012
Commits on Apr 12, 2012
  1. Cleanup the .gitignore

    Loïc Hoguin committed Apr 12, 2012
  2. Use a separate rebar.config file for running tests

    Loïc Hoguin committed Apr 12, 2012
Commits on Apr 6, 2012
  1. Update autobahn suite to use autobahntestsuite

    Magnus Klaar committed Apr 6, 2012
Commits on Apr 5, 2012
  1. Add support for fragmented websocket messages

    Magnus Klaar committed Apr 2, 2012
Commits on Apr 1, 2012
  1. Add chunked transfer encoding support and rework the body reading API

    Introduces 3 low level functions and updates the existing higher
    levels functions. The new primitives are has_body/1, body_length/1
    and stream_body/1. In addition to that, a helper function
    init_stream/4 has been added.
    
    Streaming a body implies to decode the Transfer-Encoding and
    Content-Encoding used for the body. By default, Cowboy will try
    to figure out what was used and decode them properly. You can
    override this if you want to disable this behavior or simply
    support more encodings by calling the init_stream/4 function
    before you start streaming the body.
    Loïc Hoguin committed Mar 28, 2012
  2. Merge branch 'log-proplist-req'

    Loïc Hoguin committed Apr 1, 2012
  3. Convert request to proplist when logging

    Magnus Klaar committed with Loïc Hoguin Mar 31, 2012
Commits on Mar 23, 2012
  1. Merge branch 'patch-1' of https://github.com/si14/cowboy

    Loïc Hoguin committed Mar 23, 2012
Commits on Mar 22, 2012
Commits on Mar 21, 2012
Commits on Mar 15, 2012
  1. Don't close requests when the replied body is chunked

    Loïc Hoguin committed Mar 15, 2012
  2. Add an 'onrequest' hook for HTTP

    This new protocol option is a fun.
    
    It expects a single arg, the Req, and should only return a possibly
    modified Req. This can be used for many things like URL rewriting,
    access logging or listener-wide authentication.
    
    If a reply is sent inside the hook, then Cowboy will consider the
    request handled and will move on to the next one.
    Loïc Hoguin committed Mar 15, 2012
Commits on Mar 13, 2012
  1. Do not send chunked Transfer-Encoding replies for HTTP/1.0

    Fixes compatibility issue #140 reported by @majek.
    Loïc Hoguin committed Mar 13, 2012