Class: HTTPX::Plugins::Cookie

Inherits:
Object
  • Object
show all
Includes:
Comparable
Defined in:
sig/plugins/cookies/cookie.rbs

Defined Under Namespace

Modules: Scanner

Constant Summary collapse

MAX_LENGTH =

Returns:

  • (Integer)

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCookie

Returns a new instance of Cookie.

Parameters:

  • name (_ToS)
  • value (_ToS)
  • (cookie_attributes)


46
# File 'sig/plugins/cookies/cookie.rbs', line 46

def initialize: (_ToS name, _ToS value, ?cookie_attributes) -> void

Instance Attribute Details

#created_atTime (readonly)

Returns the value of attribute created_at.

Returns:

  • (Time)


16
17
18
# File 'sig/plugins/cookies/cookie.rbs', line 16

def created_at
  @created_at
end

#domainDomainName? (readonly)

Returns the value of attribute domain.

Returns:



8
9
10
# File 'sig/plugins/cookies/cookie.rbs', line 8

def domain
  @domain
end

#nameString (readonly)

Returns the value of attribute name.

Returns:

  • (String)


12
13
14
# File 'sig/plugins/cookies/cookie.rbs', line 12

def name
  @name
end

#pathString (readonly)

Returns the value of attribute path.

Returns:

  • (String)


10
11
12
# File 'sig/plugins/cookies/cookie.rbs', line 10

def path
  @path
end

#valueString? (readonly)

Returns the value of attribute value.

Returns:

  • (String, nil)


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

Overloads:

  • .new(arg0) ⇒ instance

    Parameters:

    Returns:

    • (instance)
  • .new(arg0) ⇒ instance

    Parameters:

    • arg0 (cookie_attributes)

    Returns:

    • (instance)
  • .new(arg0, arg1, arg2) ⇒ instance

    Parameters:

    • arg0 (_ToS)
    • arg1 (_ToS)
    • arg2 (cookie_attributes)

    Returns:

    • (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

Parameters:

  • (String)
  • (String)

Returns:

  • (Boolean)


42
# File 'sig/plugins/cookies/cookie.rbs', line 42

def self.path_match?: (String, String) -> bool

Instance Method Details

#acceptable_from_uri?Boolean

Parameters:

  • (uri)

Returns:

  • (Boolean)


48
# File 'sig/plugins/cookies/cookie.rbs', line 48

def acceptable_from_uri?: (uri) -> bool

Returns:

  • (String)


31
# File 'sig/plugins/cookies/cookie.rbs', line 31

def cookie_value: () -> String

#domain=void (readonly)

This method returns an undefined value.

Parameters:

  • (string)


24
# File 'sig/plugins/cookies/cookie.rbs', line 24

def domain=: (string) -> void

#expired?Boolean #expired?(arg0) ⇒ Boolean

Overloads:

  • #expired?Boolean

    Returns:

    • (Boolean)
  • #expired?(arg0) ⇒ Boolean

    Parameters:

    • arg0 (Time)

    Returns:

    • (Boolean)


28
29
# File 'sig/plugins/cookies/cookie.rbs', line 28

def expired?: () -> bool
| (Time) -> bool

#expiresTime?

Returns:

  • (Time, nil)


26
# File 'sig/plugins/cookies/cookie.rbs', line 26

def expires: () -> Time?

#match?Boolean

Parameters:

  • name_or_options (String, cookie_attributes)

Returns:

  • (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.

Parameters:

  • (string)


22
# File 'sig/plugins/cookies/cookie.rbs', line 22

def path=: (string) -> void

#valid_for_uri?Boolean

Parameters:

  • uri (http_uri)

Returns:

  • (Boolean)


36
# File 'sig/plugins/cookies/cookie.rbs', line 36

def valid_for_uri?: (http_uri uri) -> bool