Rainbows! Rack HTTP server user/dev discussion
 help / color / mirror / code / Atom feed
* [PATCH] Remove deprecated Rainbows::HttpResponse
@ 2011-08-05 21:24 Pratik Naik
       [not found] ` <1312579461-17223-1-git-send-email-pratiknaik-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Pratik Naik @ 2011-08-05 21:24 UTC (permalink / raw)
  To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw; +Cc: Pratik Naik

---
 lib/rainbows.rb               |    1 -
 lib/rainbows/http_response.rb |   26 --------------------------
 2 files changed, 0 insertions(+), 27 deletions(-)
 delete mode 100644 lib/rainbows/http_response.rb

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
-- 
1.7.3.4

_______________________________________________
Rainbows! mailing list - rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org
http://rubyforge.org/mailman/listinfo/rainbows-talk
Do not quote signatures (like this one) or top post when replying


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-08-06 15:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-05 21:24 [PATCH] Remove deprecated Rainbows::HttpResponse Pratik Naik
     [not found] ` <1312579461-17223-1-git-send-email-pratiknaik-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-08-05 22:07   ` Eric Wong
     [not found]     ` <20110805220714.GA6456-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org>
2011-08-05 22:27       ` Pratik
     [not found]         ` <CADtcy21gt2YbEjET5GcqFHCxtRvsjxheFaz+E+XWJoBOOBKZFw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-08-05 23:51           ` Eric Wong
     [not found]             ` <20110805235144.GA27634-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org>
2011-08-06 15:20               ` Pratik

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/rainbows.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).