Module: FirePHRuby::HTTPResponse
Constant Summary
Constants included
from Common
Common::FPHR_INIT_HEADERS, Common::FPHR_INIT_HEADERS_DUMP, Common::FPHR_INIT_HEADERS_LOG, Common::FPHR_KINDS, Common::FPHR_LEGACY_WARNING, Common::MAX_LENGTH
Instance Method Summary
collapse
Methods included from Common
#_firephruby_build_headers, #_firephruby_initialize_request, #_firephruby_mask_ruby_types, #_firephruby_set_options, #firephruby_internal_log
Instance Method Details
#_firephruby_set_user_agent(ua) ⇒ Object
145
146
147
|
# File 'lib/firephruby.rb', line 145
def _firephruby_set_user_agent ua
@firephruby_user_agent = ua
end
|
#fire_clog(msg, kind = 'LOG', label = nil) ⇒ Object
130
131
132
133
134
135
136
137
|
# File 'lib/firephruby.rb', line 130
def fire_clog msg,kind='LOG', label=nil
return if defined?( @firephpruby_skip ) && @firephpruby_skip
= msg,kind,label
.each { |h| [h[0]] = h[1] }
return if defined? @firephruby_inited
_firephruby_initialize_request( @firephruby_user_agent ).each_pair { |k,v| [k] = v }
@firephruby_inited = true
end
|
#fire_dump(obj, label = '') ⇒ Object
142
143
144
|
# File 'lib/firephruby.rb', line 142
def fire_dump obj, label=''
fire_clog obj,'DUMP', label
end
|
#fire_options(options = {}) ⇒ Object
138
139
140
|
# File 'lib/firephruby.rb', line 138
def fire_options options={}
_firephruby_set_options options
end
|