Class: DoroParser::DoroHttp

Inherits:
Object
  • Object
show all
Defined in:
lib/dorothy2/do-parsers.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contypeObject (readonly)

Returns the value of attribute contype.



232
233
234
# File 'lib/dorothy2/do-parsers.rb', line 232

def contype
  @contype
end

#dataObject

Returns the value of attribute data.



237
238
239
# File 'lib/dorothy2/do-parsers.rb', line 237

def data
  @data
end

#methodObject (readonly)

Returns the value of attribute method.



233
234
235
# File 'lib/dorothy2/do-parsers.rb', line 233

def method
  @method
end

#sizeObject (readonly)

Returns the value of attribute size.



236
237
238
# File 'lib/dorothy2/do-parsers.rb', line 236

def size
  @size
end

#sslObject (readonly)

Returns the value of attribute ssl.



235
236
237
# File 'lib/dorothy2/do-parsers.rb', line 235

def ssl
  @ssl
end

#uriObject (readonly)

Returns the value of attribute uri.



234
235
236
# File 'lib/dorothy2/do-parsers.rb', line 234

def uri
  @uri
end