Module: RailsWithFirePHP::HTTPResponse

Includes:
Common
Included in:
ActionDispatch::Response, Mongrel::HttpResponse, Rails, WEBrick::HTTPResponse
Defined in:
lib/core/rails_with_firephp.rb

Constant Summary

Constants included from Common

Common::MAX_LENGTH, Common::RWFP_INIT_HEADERS, Common::RWFP_INIT_HEADERS_DUMP, Common::RWFP_INIT_HEADERS_LOG, Common::RWFP_KINDS, Common::RWFP_LEGACY_WARNING

Instance Method Summary collapse

Methods included from Common

#_rwfp_build_headers, #_rwfp_initialize_request, #_rwfp_mask_ruby_types, #_rwfp_set_options, #rwfp_internal_log, #toUnicode

Instance Method Details

#_rwfp_set_user_agent(ua) ⇒ Object



148
149
150
# File 'lib/core/rails_with_firephp.rb', line 148

def _rwfp_set_user_agent ua
  @rwfp_user_agent = ua
end

#fire_clog(msg, kind = 'LOG', label = nil) ⇒ Object



133
134
135
136
137
138
139
140
# File 'lib/core/rails_with_firephp.rb', line 133

def fire_clog msg,kind='LOG', label=nil
  return if defined?( @firephpruby_skip ) && @firephpruby_skip
  logheaders = _rwfp_build_headers msg,kind,label
  logheaders.each { |h| @header[h[0]] = h[1] }
  return if defined? @rwfp_inited
  _rwfp_initialize_request( @rwfp_user_agent ).each_pair { |k,v| @header[k] = v }
  @rwfp_inited = true
end

#fire_dump(obj, label = '') ⇒ Object



145
146
147
# File 'lib/core/rails_with_firephp.rb', line 145

def fire_dump obj, label=''
  fire_clog obj,'DUMP', label
end

#fire_options(options = {}) ⇒ Object



141
142
143
# File 'lib/core/rails_with_firephp.rb', line 141

def fire_options options={}
  _rwfp_set_options options
end