Class: HTTP::Cookie

Inherits:
Object
  • Object
show all
Defined in:
sig/http.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCookie

Returns a new instance of Cookie.

Parameters:

  • (String)
  • (String)
  • (Object)


1234
# File 'sig/http.rbs', line 1234

def initialize: (String, String, **untyped) -> void

Instance Attribute Details

Returns the value of attribute cookie_value.

Returns:

  • (String)


1230
1231
1232
# File 'sig/http.rbs', line 1230

def cookie_value
  @cookie_value
end

#nameString (readonly)

Returns the value of attribute name.

Returns:

  • (String)


1228
1229
1230
# File 'sig/http.rbs', line 1228

def name
  @name
end

#valueString (readonly)

Returns the value of attribute value.

Returns:

  • (String)


1229
1230
1231
# File 'sig/http.rbs', line 1229

def value
  @value
end

Class Method Details

Parameters:

  • (String)

Returns:

  • (Hash[String, String])


1233
# File 'sig/http.rbs', line 1233

def self.cookie_value_to_hash: (String) -> Hash[String, String]

.parseArray[HTTP::Cookie]

Parameters:

  • (String)
  • (URI)

Returns:



1232
# File 'sig/http.rbs', line 1232

def self.parse: (String, URI) -> Array[HTTP::Cookie]