Class: Thin::Response
- Inherits:
-
Object
- Object
- Thin::Response
- Defined in:
- lib/thin_extensions.rb
Instance Attribute Summary (collapse)
-
- (Object) websocket_upgrade_data
Headers for sending Websocket upgrade.
Instance Method Summary (collapse)
Instance Attribute Details
- (Object) websocket_upgrade_data
Headers for sending Websocket upgrade
82 83 84 |
# File 'lib/thin_extensions.rb', line 82 def websocket_upgrade_data @websocket_upgrade_data end |
Instance Method Details
- (Object) each
84 85 86 87 88 89 90 91 |
# File 'lib/thin_extensions.rb', line 84 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 |