CookieRestoreEntry class

外部から復元する Cookie 情報を表します。

構造化データとして直接生成するか、Set-Cookie ヘッダ文字列から 生成して OfflineWebProxy.restoreCookies に渡します。

Constructors

CookieRestoreEntry({required String name, required String value, required String domain, String path = '/', DateTime? expires, bool secure = false, bool httpOnly = false, String? sameSite, bool hostOnly = false, DateTime? createdAt})
構造化データから Cookie 復元エントリを生成します。
const
CookieRestoreEntry.fromSetCookieHeader({required String setCookieHeader, required String requestUrl, DateTime? receivedAt})
Set-Cookie ヘッダ文字列から Cookie 復元エントリを生成します。
factory

Properties

createdAt DateTime?
復元時の作成日時です。
final
domain String
有効ドメインです。
final
expires DateTime?
有効期限です。null の場合はセッション Cookie です。
final
hashCode int
The hash code for this object.
no setterinherited
hostOnly bool
ホスト限定 Cookie かどうかです。
final
httpOnly bool
HttpOnly 属性の有無です。
final
name String
Cookie 名です。
final
path String
有効パスです。
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sameSite String?
SameSite 属性です。
final
secure bool
Secure 属性の有無です。
final
value String
Cookie の実値です。
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toCookieRecord({DateTime? restoredAt}) → CookieRecord
内部 Cookie レコードへ変換します。
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited