Module: Analysand::ResponseHeaders
- Included in:
- ConfigResponse, Response, StreamingViewResponse
- Defined in:
- lib/analysand/response_headers.rb
Instance Method Summary collapse
Instance Method Details
#cookies ⇒ Object
7 8 9 |
# File 'lib/analysand/response_headers.rb', line 7 def response.get_fields('Set-Cookie') end |
#etag ⇒ Object
3 4 5 |
# File 'lib/analysand/response_headers.rb', line 3 def etag response.get_fields('ETag').first.gsub('"', '') end |
#session_cookie ⇒ Object
11 12 13 14 15 16 |
# File 'lib/analysand/response_headers.rb', line 11 def return unless (cs = ) cs.detect { |c| c =~ /^(AuthSession=[^;]+)/i } $1 end |