RequestOptions class

リクエスト単位のオプション。

Constructors

RequestOptions({bool authRequired = true, bool idempotent = false, String? contentType, Map<String, String> headers = const {}, Map<String, dynamic> extra = const {}})
リクエスト単位のオプション
const

Properties

authRequired bool
認証必須か。true の場合 POST の JSON body に i を自動注入する
final
contentType String?
このリクエストのContent-Typeを明示的に指定する。未指定時はDioが推論する
final
extra Map<String, dynamic>
DioのOptions.extraに引き継ぐ追加情報
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
このリクエスト固有の追加ヘッダ
final
idempotent bool
冪等リクエストか。true の場合のみ自動リトライ対象
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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