本文简要介绍ruby语言中 CGI::Cookie.parse
的用法。
用法
parse(raw_cookie)
将原始 cookie 字符串解析为 cookie-name=>Cookie 对的哈希。
cookies = CGI::Cookie.parse("raw_cookie_string")
# { "name1" => cookie1, "name2" => cookie2, ... }
相关用法
- Ruby Cookie.new用法及代码示例
- Ruby Cookie类用法及代码示例
- Ruby Context.save_history=用法及代码示例
- Ruby Constants模块用法及代码示例
- Ruby Comparable.between?用法及代码示例
- Ruby Complex.arg用法及代码示例
- Ruby ComposedSet类用法及代码示例
- Ruby Continuation类用法及代码示例
- Ruby Complex.abs2用法及代码示例
- Ruby Context.echo_on_assignment?用法及代码示例
- Ruby Complex.angle用法及代码示例
- Ruby Complex.polar用法及代码示例
- Ruby Comment.extract_call_seq用法及代码示例
- Ruby Comparable.clamp用法及代码示例
- Ruby Complex.to_f用法及代码示例
- Ruby Complex.cmp / numeric用法及代码示例
- Ruby Complex.conj用法及代码示例
- Ruby Converter.primitive_errinfo用法及代码示例
- Ruby Config.get_value用法及代码示例
- Ruby Context.echo?用法及代码示例
- Ruby Command.arguments用法及代码示例
- Ruby Complex类用法及代码示例
- Ruby Complex.infinite?用法及代码示例
- Ruby Complex.abs用法及代码示例
- Ruby Context.echo_on_assignment用法及代码示例
注:本文由纯净天空筛选整理自ruby-lang.org大神的英文原创作品 Cookie.parse。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。