### Home Classes Methods

### In Files

- lib/stella/report.rb

### Parent

Storable

### Methods

- #empty?
- #init
- #process
- #request_header
- #response_header

### Included Modules

- Gibbler::Complex
- Stella::Report::Plugin

### Files

- LICENSE.txt
- TODO

### Class/Module Index

Quicksearch

- Stella
- Stella::API
- Stella::API::Unauthorized
- Stella::Asserts
- Stella::CLI
- Stella::Client
- Stella::Common
- Stella::Common::PrivacyMethods
- Stella::ET
- Stella::Engine
- Stella::Engine::Base
- Stella::Engine::Base::ClassMethods
- Stella::Engine::Checkup
- Stella::EventTemplate
- Stella::ForcedRedirect
- Stella::HTTPError
- Stella::Log
- Stella::Log::HTTP
- Stella::PageError
- Stella::RT
- Stella::RepeatRequest
- Stella::Report
- Stella::Report::Content
- Stella::Report::Content::ReportMethods
- Stella::Report::Errors
- Stella::Report::Errors::ReportMethods
- Stella::Report::Headers
- Stella::Report::Metrics
- Stella::Report::Metrics::ReportMethods
- Stella::Report::Plugin
- Stella::Report::Plugin::ClassMethods
- Stella::Report::Statuses
- Stella::Report::Statuses::ReportMethods
- Stella::RequestError
- Stella::RequestTemplate
- Stella::Session
- Stella::StringTemplate
- Stella::TP
- Stella::Testplan
- Stella::Testplan::ClassMethods
- Stella::TestplanQuit
- Stella::Testrun
- Stella::TimeoutError
- Stella::UC
- Stella::Usecase
- Stella::Usecase::ClassMethods
- Stella::UsecaseError
- Stella::UsecaseFail
- Stella::Utils
- Stella::VERSION
- Addressable
- Addressable::URI
- Time
- Time::Units
- Array
- DefaultTestplan
- Float
- Hash
- MatchData
- MetricsPack
- Numeric
- Object
- OpenStruct
- StellaBehavior
- StellaError
- String
- Symbol
- Thread

No matching classes.

# Stella::Report::Headers

### Public Instance Methods

empty?() click to toggle source

    # File lib/stella/report.rb, line 270
    def empty?
      @response_headers.to_s.empty?
    end

init(*args) click to toggle source

    # File lib/stella/report.rb, line 243
    def init *args
      # TODO: This doesn't seem to be called anymore.
      @request_headers_hash = {}
      @response_headers_hash = {}
    end

process(filter={}) click to toggle source

    # File lib/stella/report.rb, line 248
    def process(filter={})
      return if report.content.log.empty?
      @request_headers = report.content.log.first.request_headers
      @response_headers = report.content.log.first.response_headers
      @request_headers_digest = report.content.log.first.request_headers.digest
      @response_headers_digest = report.content.log.first.response_headers.digest
      processed!
    end

request_header(name=nil) click to toggle source

    # File lib/stella/report.rb, line 256
    def request_header name=nil
      @request_headers_hash ||= {}
      if @request_headers_hash.empty? && @request_headers
        @request_headers_hash = parse(@request_headers)
      end
      name.nil? ? @request_headers_hash : @request_headers_hash[name.to_s.upcase]
    end

response_header(name=nil) click to toggle source

    # File lib/stella/report.rb, line 263
    def response_header name=nil
      @response_headers_hash ||= {}
      if @response_headers_hash.empty? && @response_headers
        @response_headers_hash = parse(@response_headers)
      end
      name.nil? ? @response_headers_hash : @response_headers_hash[name.to_s.upcase]
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.