Class: WEBrick::Cookie
Overview
Copyright 2010-2014 Tasos Laskos <[email protected]>
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
-
#httponly ⇒ Object
Returns the value of attribute httponly.
Class Method Summary collapse
Instance Attribute Details
#httponly ⇒ Object
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
.old_parse_set_cookie ⇒ Object
13 |
# File 'lib/arachni/ruby/webrick/cookie.rb', line 13 alias :old_parse_set_cookie :parse_set_cookie |
.parse_set_cookie(str) ⇒ Object
16 17 18 19 20 21 |
# File 'lib/arachni/ruby/webrick/cookie.rb', line 16 def self.( str ) = ( str ) .httponly = str.split( ';' ).map { |f| f.downcase.strip }. include?( 'httponly' ) end |