http: standalone require + reduction in binary size
commit11810564cc4b6b8bfdc679f5a6384f4af6debe40
authorEric Wong <e@80x24.org>
Wed, 28 Jan 2015 18:54:15 +0000 (28 18:54 +0000)
committerEric Wong <e@80x24.org>
Wed, 4 Feb 2015 20:12:46 +0000 (4 20:12 +0000)
tree02986f0f5a94985718d602c7ff53c8bf92da5b9d
parentfd937863d67d5a886df2a53f1736d643fbb91e4a
http: standalone require + reduction in binary size

This allows requiring just the C extension part of "unicorn_http",
without requiring the rest of unicorn, allowing other HTTP servers
using the same parser to be slimmer.

On my x86-64 Debian 7.0 system:

    text    data     bss     dec     hex filename
   44026    1976     488   46490    b59a lib/unicorn_http.so
   43930    1976     456   46362    b51a lib/unicorn_http.so
GNUmakefile
ext/unicorn_http/httpdate.c
ext/unicorn_http/unicorn_http.rl