Class: Thin::Response
- Inherits:
-
Object
- Object
- Thin::Response
- Defined in:
- lib/faye/thin_extensions.rb
Instance Attribute Summary collapse
-
#websocket ⇒ Object
Headers for sending Websocket upgrade.
Instance Method Summary collapse
Instance Attribute Details
#websocket ⇒ Object
Headers for sending Websocket upgrade
64 65 66 |
# File 'lib/faye/thin_extensions.rb', line 64 def websocket @websocket end |
Instance Method Details
#each {|head| ... } ⇒ Object
66 67 68 69 70 71 72 73 |
# File 'lib/faye/thin_extensions.rb', line 66 def each yield(head) unless websocket if @body.is_a?(String) yield @body else @body.each { |chunk| yield chunk } end end |