class

QBittorrent::Model::Cookie

Inherits JSON::Serializable < Reference < Object

A stored WebUI cookie (qB 5.x addition), as returned by GET app/cookies and accepted by POST app/setCookies (which takes a JSON array of these).

Round-trips cleanly: parse the cookies array, mutate, and re-serialize with #to_json to send back. Fields are nilable so partial payloads parse, but a cookie sent to setCookies should have all fields populated.

Constructors

new(name : String | Nil = nil, domain : String | Nil = nil, path : String | Nil = nil, value : String | Nil = nil, expiration_date : Int64 | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

domain

Cookie domain.

Source
domain=(domain : String | Nil)

Cookie domain.

Source
expiration_date

Expiry as a Unix epoch in seconds (Int64 to stay 2038-safe).

Source
expiration_date=(expiration_date : Int64 | Nil)

Expiry as a Unix epoch in seconds (Int64 to stay 2038-safe).

Source
name

Cookie name.

Source
name=(name : String | Nil)

Cookie name.

Source
path

Cookie path.

Source
path=(path : String | Nil)

Cookie path.

Source
value

Cookie value.

Source
value=(value : String | Nil)

Cookie value.

Source