24件ヒット
[1-24件を表示]
(0.251秒)
検索結果
-
WEBrick
:: Cookie . parse _ set _ cookie(str) -> WEBrick :: Cookie (18113.0) -
サーバから送られてくる Set-Cookie ヘッダの値 str をパースし、 新しく WEBrick::Cookie オブジェクトを生成し返します。
...ck::Cookie オブジェクトを生成し返します。
@param str Set-Cookie ヘッダの値を文字列で指定します。
require 'webrick'
include WEBrick
c = Cookie.parse_set_cookie('Shipping="FedEx"; Version="1"; Path="/acme"')
p c.name, c.value
#=>
"Shipping"
"FedEx"... -
ruby 1
. 8 . 4 feature (12.0) -
ruby 1.8.4 feature ruby 1.8.4 での ruby 1.8.3 からの変更点です。
...ました。((<ruby-dev:27964>))
module Foo
def initialize
super
end
end
class Bar
include Foo
def initialize
Foo.instance_method(:initialize).bind(self).call
end
end
Bar.new......f Set-Cookie:
# header field should be splited into each cookie. [ruby-Bugs:2199]
#
# * lib/webrick/cookie.rb (WEBrick::Cookie.parse_set_cookie): new method
# to parse the value of Set-Cookie: header field.
#
# * test/webrick/test_cookie.rb, test/webrick/test_cgi.rb,
#...