Class: Thin::Response
- Inherits:
-
Object
- Object
- Thin::Response
- Defined in:
- lib/thin_extensions.rb
Instance Attribute Summary collapse
-
#websocket_upgrade_data ⇒ Object
Headers for sending Websocket upgrade.
Instance Method Summary collapse
Instance Attribute Details
#websocket_upgrade_data ⇒ Object
Headers for sending Websocket upgrade
143 144 145 |
# File 'lib/thin_extensions.rb', line 143 def websocket_upgrade_data @websocket_upgrade_data end |
Instance Method Details
#each ⇒ Object
145 146 147 148 149 150 151 152 |
# File 'lib/thin_extensions.rb', line 145 def each websocket_upgrade_data ? yield(websocket_upgrade_data) : yield(head) if @body.is_a?(String) yield @body else @body.each { |chunk| yield chunk } end end |