Class Rufus::Verbs::Cookie

  1. lib/rufus/verbs/cookies.rb
Parent: WEBrick::Cookie

An extension of the cookie implementation found in WEBrick.

Unmodified for now.

Methods

public instance

  1. to_header_s

Public instance methods

to_header_s ()
[show source]
     # File lib/rufus/verbs/cookies.rb, line 175
175:     def to_header_s
176: 
177:       ret = ''
178:       ret << @name << '=' << @value
179:       ret << '; ' << '$Version=' << @version.to_s if @version > 0
180:       ret << '; ' << '$Domain=' << @domain if @domain
181:       ret << '; ' << '$Port=' << @port if @port
182:       ret << '; ' << '$Path=' << @path if @path
183:       ret
184:     end