a branch of Mochi Media's excellent HTTP library -- their canonical source can be found at https://github.com/mochi/mochiweb
Erlang Other
Latest commit 34d3e42 Oct 5, 2016 @zeeshanlakhani zeeshanlakhani committed with bsparrow435 Basho/zl/mochiweb update with master for recbuf and more (#19)
* have edoc build things before generating docs. re: issue #135

* Minimize calls to gen_tcp:send() to optimize performance.  Tests indicate a 50 to 1 performance improvement with this change.

* update version to 2.9.1

* fixed an DoS vulnerability in Mochiweb/SSL

* SSL: Fix for broken ECDH ciper suite in R16B

See: http://osdir.com/ml/erlang-programming-bugs/2013-10/msg00004.html

Fix inspired by ninenines/ranch@c0c09a1

* SSL: remove unsafe ciphers and protocols from the default options.

* update CHANGES and README for v2.9.2 #140

* Add recbuf config option.

* update CHANGES for v2.10.0 #134

* move common testing functionality into mochiweb_test_util

* end to end connect test for websocket

* end to end test with text frames (ssl is broken)

* fix ssl receive support for websocket

* R15 debugging

* update CHANGES for 2.10.1

* mitigate SSL and emfile related conditions per #138

* include 17.1 in travis config, only use latest releases of older versions

* Accept range end position which exceededs the resource size

RFC 2616 14.35.1 Byte Ranges

    If the last-byte-pos value is absent, or if the value is greater than
    or equal to the current length of the entity-body, last-byte-pos is
    taken to be equal to one less than the current length of the entity-
    body in bytes.

This work is originally done by @shino

* update CHANGES for 2.11.1

* Fix range parsing regression introduced in #147

* send "Connection: close" header when the server is going to force-close the connection #146

* As discussed with @etrepum, add missing license headers

* update CHANGES for 2.12.1

* update copyright for mochiweb_session

* attempt to fix active_socket accounting #149

* update CHANGES for v2.12.1

* exit when setopts result is {error,closed} #152

* Export stream_body/5, allows to specify a max body length

* Allow recbuf to be undefined

If recbuf option is undefined, the operating system decides on the buffer size
If no buffer size is speciefied, streaming will happen in the chunks of MaxChunkSize


MochiWeb is an Erlang library for building lightweight HTTP servers.

Build Status

The latest version of MochiWeb is available at http://github.com/mochi/mochiweb

The mailing list for MochiWeb is at http://groups.google.com/group/mochiweb/

R12B compatibility: The master of MochiWeb is tested with R14A and later. A branch compatible with R12B is maintained separately at http://github.com/lemenkov/mochiweb The R12B branch of that repository is mirrored in the official repository occasionally for convenience.

To create a new mochiweb using project: make app PROJECT=project_name

To create a new mochiweb using project in a specific directory: make app PROJECT=project_name PREFIX=$HOME/projects/