about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2011-08-05 22:24:21 +0100
committerEric Wong <normalperson@yhbt.net>2011-08-05 23:39:01 +0000
commita8949f91b323cf478f6aa99dc144f672d382e55e (patch)
tree8b3434750903d692998cab97d9006f4faa3c2af4 /lib
parent017b95be08a702c9faae1949db9328f7e82c2d8c (diff)
downloadrainbows-a8949f91b323cf478f6aa99dc144f672d382e55e.tar.gz
Acked-by: Eric Wong <normalperson@yhbt.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/rainbows.rb1
-rw-r--r--lib/rainbows/http_response.rb26
2 files changed, 0 insertions, 27 deletions
diff --git a/lib/rainbows.rb b/lib/rainbows.rb
index 3bf7717..bfa1ba0 100644
--- a/lib/rainbows.rb
+++ b/lib/rainbows.rb
@@ -121,7 +121,6 @@ module Rainbows
 
   autoload :Fiber, 'rainbows/fiber' # core class
   autoload :StreamFile, 'rainbows/stream_file'
-  autoload :HttpResponse, 'rainbows/http_response' # deprecated
   autoload :ThreadTimeout, 'rainbows/thread_timeout'
   autoload :WorkerYield, 'rainbows/worker_yield'
   autoload :SyncClose, 'rainbows/sync_close'
diff --git a/lib/rainbows/http_response.rb b/lib/rainbows/http_response.rb
deleted file mode 100644
index 564d2d0..0000000
--- a/lib/rainbows/http_response.rb
+++ /dev/null
@@ -1,26 +0,0 @@
-# -*- encoding: binary -*-
-# :enddoc:
-# deprecated, use Rainbows::Response instead
-# Cramp 0.11 relies on this, and is only activated by Cramp
-if defined?(Cramp) && defined?(Rainbows::EventMachine::Client)
-  class Rainbows::HttpResponse
-    # dummy method for Cramp to alias_method_chain
-    def self.write(client, response, out)
-    end
-  end
-
-  module Rainbows::EventMachine::CrampSocket
-    def em_write_response(response, alive = false)
-      if websocket?
-        write web_socket_upgrade_data
-        web_socket_handshake!
-        response[1] = nil # disable response headers
-      end
-      super
-    end
-  end
-
-  class Rainbows::EventMachine::Client
-    include Rainbows::EventMachine::CrampSocket
-  end
-end