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.



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

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.



159
160
161
# File 'lib/dorothy2/DEM.rb', line 159

def contype
  @contype
end

#dataObject

Returns the value of attribute data.



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

def data
  @data
end

#methodObject (readonly)

Returns the value of attribute method.



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

def method
  @method
end

#sizeObject (readonly)

Returns the value of attribute size.



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

def size
  @size
end

#sslObject (readonly)

Returns the value of attribute ssl.



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

def ssl
  @ssl
end

#uriObject (readonly)

Returns the value of attribute uri.



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

def uri
  @uri
end