Class: WEBrick::Cookie

Inherits:
Object show all
Defined in:
lib/arachni/ruby/webrick.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#httponlyObject

Returns the value of attribute httponly.



19
20
21
# File 'lib/arachni/ruby/webrick.rb', line 19

def httponly
  @httponly
end

Class Method Details



22
# File 'lib/arachni/ruby/webrick.rb', line 22

alias :old_parse_set_cookie :parse_set_cookie


25
26
27
28
29
30
# File 'lib/arachni/ruby/webrick.rb', line 25

def self.parse_set_cookie( str )
    cookie = old_parse_set_cookie( str )
    cookie.httponly = str.split( ';' ).map { |f| f.downcase.strip }.
        include?( 'httponly' )
    cookie
end