Class: DoroParser::DoroHttp

Inherits:
Object
  • Object
show all
Defined in:
lib/dorothy2/DEM.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(flowdeep) ⇒ DoroHttp

Returns a new instance of DoroHttp.



168
169
170
171
172
173
174
175
# File 'lib/dorothy2/DEM.rb', line 168

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.



161
162
163
# File 'lib/dorothy2/DEM.rb', line 161

def contype
  @contype
end

#dataObject

Returns the value of attribute data.



166
167
168
# File 'lib/dorothy2/DEM.rb', line 166

def data
  @data
end

#methodObject (readonly)

Returns the value of attribute method.



162
163
164
# File 'lib/dorothy2/DEM.rb', line 162

def method
  @method
end

#sizeObject (readonly)

Returns the value of attribute size.



165
166
167
# File 'lib/dorothy2/DEM.rb', line 165

def size
  @size
end

#sslObject (readonly)

Returns the value of attribute ssl.



164
165
166
# File 'lib/dorothy2/DEM.rb', line 164

def ssl
  @ssl
end

#uriObject (readonly)

Returns the value of attribute uri.



163
164
165
# File 'lib/dorothy2/DEM.rb', line 163

def uri
  @uri
end