Class: HTTPX::Plugins::Cookie
- Inherits:
-
Object
- Object
- HTTPX::Plugins::Cookie
- Includes:
- Comparable
- Defined in:
- sig/plugins/cookies/cookie.rbs
Defined Under Namespace
Modules: Scanner
Constant Summary collapse
- MAX_LENGTH =
Instance Attribute Summary collapse
-
#created_at ⇒ Time
readonly
Returns the value of attribute created_at.
-
#domain ⇒ DomainName?
readonly
Returns the value of attribute domain.
-
#name ⇒ String
readonly
Returns the value of attribute name.
-
#path ⇒ String
readonly
Returns the value of attribute path.
-
#value ⇒ String?
readonly
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
- #acceptable_from_uri? ⇒ Boolean
- #cookie_value ⇒ String
- #domain ⇒ void readonly
- #expired? ⇒ Object
- #expires ⇒ Time?
-
#initialize ⇒ Cookie
constructor
A new instance of Cookie.
- #match? ⇒ Boolean
- #path ⇒ void readonly
- #valid_for_uri? ⇒ Boolean
Constructor Details
#initialize ⇒ Cookie
Returns a new instance of Cookie.
46 |
# File 'sig/plugins/cookies/cookie.rbs', line 46
def initialize: (_ToS name, _ToS value, ?cookie_attributes) -> void
|
Instance Attribute Details
#created_at ⇒ Time (readonly)
Returns the value of attribute created_at.
16 17 18 |
# File 'sig/plugins/cookies/cookie.rbs', line 16 def created_at @created_at end |
#domain ⇒ DomainName? (readonly)
Returns the value of attribute domain.
8 9 10 |
# File 'sig/plugins/cookies/cookie.rbs', line 8 def domain @domain end |
#name ⇒ String (readonly)
Returns the value of attribute name.
12 13 14 |
# File 'sig/plugins/cookies/cookie.rbs', line 12 def name @name end |
#path ⇒ String (readonly)
Returns the value of attribute path.
10 11 12 |
# File 'sig/plugins/cookies/cookie.rbs', line 10 def path @path end |
#value ⇒ String? (readonly)
Returns the value of attribute value.
14 15 16 |
# File 'sig/plugins/cookies/cookie.rbs', line 14 def value @value end |
Class Method Details
.new(arg0) ⇒ instance .new(arg0) ⇒ instance .new(arg0, arg1, arg2) ⇒ instance
38 39 40 |
# File 'sig/plugins/cookies/cookie.rbs', line 38
def self.new: (Cookie) -> instance
| (cookie_attributes) -> instance
| (_ToS, _ToS, ?cookie_attributes) -> instance
|
.path_match? ⇒ Boolean
42 |
# File 'sig/plugins/cookies/cookie.rbs', line 42
def self.path_match?: (String, String) -> bool
|
Instance Method Details
#acceptable_from_uri? ⇒ Boolean
48 |
# File 'sig/plugins/cookies/cookie.rbs', line 48
def acceptable_from_uri?: (uri) -> bool
|
#cookie_value ⇒ String
31 |
# File 'sig/plugins/cookies/cookie.rbs', line 31
def cookie_value: () -> String
|
#domain= ⇒ void (readonly)
This method returns an undefined value.
24 |
# File 'sig/plugins/cookies/cookie.rbs', line 24
def domain=: (string) -> void
|
#expired? ⇒ Boolean #expired?(arg0) ⇒ Boolean
28 29 |
# File 'sig/plugins/cookies/cookie.rbs', line 28
def expired?: () -> bool
| (Time) -> bool
|
#expires ⇒ Time?
26 |
# File 'sig/plugins/cookies/cookie.rbs', line 26
def expires: () -> Time?
|
#match? ⇒ Boolean
34 |
# File 'sig/plugins/cookies/cookie.rbs', line 34
def match?: (String | cookie_attributes name_or_options) -> bool
|
#path= ⇒ void (readonly)
This method returns an undefined value.
22 |
# File 'sig/plugins/cookies/cookie.rbs', line 22
def path=: (string) -> void
|
#valid_for_uri? ⇒ Boolean
36 |
# File 'sig/plugins/cookies/cookie.rbs', line 36
def valid_for_uri?: (http_uri uri) -> bool
|