diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-10-18 17:58:47 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-10-18 17:58:47 +0000 |
commit | 32998f5d56ada5968139cec91cea289e6ffa52bb (patch) | |
tree | 3e4e82f6b932eb408129dfda859dcb2ebce181ed | |
parent | 4b7ffee7c2436b1839146fd124e731a63f20d03e (diff) | |
download | yahns-32998f5d56ada5968139cec91cea289e6ffa52bb.tar.gz |
We'll probably drop the unicorn dependency in the future and use kcar once it gains the ability to parse server requests (and not just responses). kcar is descended from the unicorn parser anyways and supports the same enhancements (chunked encoding/trailers).
-rw-r--r-- | lib/yahns.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/yahns.rb b/lib/yahns.rb index 373fca0..0499640 100644 --- a/lib/yahns.rb +++ b/lib/yahns.rb @@ -3,6 +3,13 @@ require 'unicorn' # pulls in raindrops, kgio, fcntl, etc, stringio, and logger require 'sleepy_penguin' +# kill off some unicorn internals we don't need +# we'll probably just make kcar into a server parser so we don't depend +# on unicorn at all +[ :ClientShutdown, :Const, :SocketHelper, :StreamInput, :TeeInput, + :SSLConfigurator, :Configurator, :TmpIO, :Util, :Worker, :SSLServer, + :HttpServer ].each { |sym| Unicorn.__send__(:remove_const, sym) } + # yahns exposes no user-visible API outside of the config file # Internals are subject to change. module Yahns # :nodoc: |