Class: WEBrick::Cookie

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

Overview

Copyright 2010-2022 Ecsypno http://www.ecsypno.com

This file is part of the Arachni Framework project and is subject to
redistribution and commercial restrictions. Please see the Arachni Framework
web site for more information on licensing and terms of use.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#httponlyObject

Returns the value of attribute httponly.



10
11
12
# File 'lib/arachni/ruby/webrick/cookie.rb', line 10

def httponly
  @httponly
end

Class Method Details



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

alias :old_parse_set_cookie :parse_set_cookie


16
17
18
19
20
21
# File 'lib/arachni/ruby/webrick/cookie.rb', line 16

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