Class: DoroParser::DoroHttp
- Inherits:
-
Object
- Object
- DoroParser::DoroHttp
- Defined in:
- lib/dorothy2/do-parsers.rb
Instance Attribute Summary collapse
-
#contype ⇒ Object
readonly
Returns the value of attribute contype.
-
#data ⇒ Object
Returns the value of attribute data.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
-
#ssl ⇒ Object
readonly
Returns the value of attribute ssl.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(flowdeep) ⇒ DoroHttp
constructor
A new instance of DoroHttp.
Constructor Details
#initialize(flowdeep) ⇒ DoroHttp
Returns a new instance of DoroHttp.
239 240 241 242 243 244 245 246 |
# File 'lib/dorothy2/do-parsers.rb', line 239 def initialize(flowdeep) @data = 'null' @method = (flowdeep.values('http.request.method')[0] ? flowdeep.values('http.request.method')[0].value : 'null') @ssl = false #TODO @size = (flowdeep.values('http.content.length')[0] ? flowdeep.values('http.content.length')[0].value : 'null') @uri = (flowdeep.values('http.request.uri')[0] ? flowdeep.values('http.request.uri')[0].value : 'null' ) @contype = (flowdeep.values('http.content.type')[0] ? flowdeep.values('http.content.type')[0].value : 'null') end |
Instance Attribute Details
#contype ⇒ Object (readonly)
Returns the value of attribute contype.
232 233 234 |
# File 'lib/dorothy2/do-parsers.rb', line 232 def contype @contype end |
#data ⇒ Object
Returns the value of attribute data.
237 238 239 |
# File 'lib/dorothy2/do-parsers.rb', line 237 def data @data end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
233 234 235 |
# File 'lib/dorothy2/do-parsers.rb', line 233 def method @method end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
236 237 238 |
# File 'lib/dorothy2/do-parsers.rb', line 236 def size @size end |
#ssl ⇒ Object (readonly)
Returns the value of attribute ssl.
235 236 237 |
# File 'lib/dorothy2/do-parsers.rb', line 235 def ssl @ssl end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
234 235 236 |
# File 'lib/dorothy2/do-parsers.rb', line 234 def uri @uri end |