るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.287秒)
トップページ > クエリ:path[x] > クエリ:parse_set_cookie[x]

別のキーワード

  1. _builtin new
  2. _builtin inspect
  3. _builtin []
  4. _builtin to_s
  5. _builtin each

種類

ライブラリ

クラス

検索結果

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 (54.0)

ruby 1.8.4 feature ruby 1.8.4 での ruby 1.8.3 からの変更点です。

...5 NAKAMURA Usaku <usa@ruby-lang.org>
#
# * file.c (rb_file_s_basename): skip slashes just after UNC top slashes.
#
# * test/ruby/test_path.rb (test_dirname, test_basename): follow new
# spec. and add new tests.

UNCパスに対するFile.dirname・File.basename・File.split...
...* file.c (rb_file_s_dirname): added checks for some patterns with drive
# letter. fixed: [ruby-dev:27738]
#
# * test/ruby/test_path.rb (test_dirname): added tests for above
# patterns.

ドライブレターを含むパスに対するFile.dirnameの問題を修正し...
...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,
#...