class HAR::Cookie
- HAR::Cookie
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
har/cookie.crConstructors
- .new(name : String, value : String, path : Nil | String = nil, domain : Nil | String = nil, expires : String | Time | Nil = nil, http_only : Bool | Nil = nil, secure : Bool | Nil = nil, comment : Nil | String = nil)
- .new(pull : JSON::PullParser)
- .new(http_cookie : HTTP::Cookie)
Instance Method Summary
-
#comment : String | Nil
A comment provided by the user or the application.
-
#comment=(comment : String | Nil)
A comment provided by the user or the application.
-
#domain : String | Nil
The host of the cookie.
-
#domain=(domain : String | Nil)
The host of the cookie.
- #expires : Time | String | Nil
- #expires=(expires : Time | String | Nil)
- #http_only : Bool | Nil
- #http_only=(http_only : Bool | Nil)
- #http_only? : Bool
-
#name : String
The name of the cookie.
-
#name=(name : String)
The name of the cookie.
-
#path : String | Nil
The path pertaining to the cookie.
-
#path=(path : String | Nil)
The path pertaining to the cookie.
-
#secure : Bool | Nil
true
if the cookie was transmitted over ssl,false
otherwise. -
#secure=(secure : Bool | Nil)
true
if the cookie was transmitted over ssl,false
otherwise. - #secure? : Bool
- #to_http_cookie : HTTP::Cookie
-
#value : String
The cookie value.
-
#value=(value : String)
The cookie value.
Constructor Detail
def self.new(name : String, value : String, path : Nil | String = nil, domain : Nil | String = nil, expires : String | Time | Nil = nil, http_only : Bool | Nil = nil, secure : Bool | Nil = nil, comment : Nil | String = nil)
#