Class: Webclient::Response::Headers
- Inherits:
-
Object
- Object
- Webclient::Response::Headers
- Defined in:
- lib/webclient/webclient_response.rb
Overview
nested class Response::Headers
Instance Method Summary collapse
- #each(&blk) ⇒ Object
-
#initialize(response) ⇒ Headers
constructor
A new instance of Headers.
Constructor Details
#initialize(response) ⇒ Headers
Returns a new instance of Headers.
77 78 79 |
# File 'lib/webclient/webclient_response.rb', line 77 def initialize( response ) @response = response end |
Instance Method Details
#each(&blk) ⇒ Object
80 81 82 83 84 |
# File 'lib/webclient/webclient_response.rb', line 80 def each( &blk ) @response.each_header do |key, value| # iterate all response headers blk.call( key, value ) end end |