git-svn-id: https://beef.googlecode.com/svn/trunk@908 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
23 lines
653 B
Ruby
23 lines
653 B
Ruby
# The following file contains patches for WEBrick.
|
|
module WEBrick
|
|
|
|
class Cookie
|
|
attr_accessor :httponly
|
|
|
|
def to_s
|
|
ret = ""
|
|
ret << @name << "=" << @value
|
|
ret << "; " << "Version=" << @version.to_s if @version > 0
|
|
ret << "; " << "Domain=" << @domain if @domain
|
|
ret << "; " << "Expires=" << @expires if @expires
|
|
ret << "; " << "Max-Age=" << @max_age.to_s if @max_age
|
|
ret << "; " << "Comment=" << @comment if @comment
|
|
ret << "; " << "Path=" << @path if @path
|
|
ret << "; " << "Secure" if @secure
|
|
ret << "; " << "HttpOnly" if @httponly
|
|
ret
|
|
end
|
|
|
|
end
|
|
|
|
end |