Class RequestOptions
1 回のリクエストに付けるオプション(Python 版 httpx の params= / json= / data= / files= に相当)。
public sealed class RequestOptions
- Inheritance
-
RequestOptions
- Inherited Members
Properties
AutoUnlock
code 326 を受けたとき captcha ソルバーで自動的にロック解除を試みるか。
public bool AutoUnlock { get; set; }
Property Value
CheckUserState
429 のとき user_state を確認して凍結と区別するか(再帰防止のため内部で false にします)。
public bool CheckUserState { get; set; }
Property Value
Files
multipart/form-data のファイル。
public List<MultipartFile>? Files { get; set; }
Property Value
FollowRedirects
リダイレクトを追うか(httpx 同様、既定では追いません)。
public bool FollowRedirects { get; set; }
Property Value
Form
application/x-www-form-urlencoded ボディ。
public Dictionary<string, string>? Form { get; set; }
Property Value
Headers
追加ヘッダー。
public Dictionary<string, string>? Headers { get; set; }
Property Value
Json
JSON ボディ。
public JsonNode? Json { get; set; }
Property Value
Params
クエリ文字列。
public Dictionary<string, string>? Params { get; set; }
Property Value
RaiseException
4xx/5xx を例外にするか。
public bool RaiseException { get; set; }
Property Value
Timeout
このリクエストだけのタイムアウト。
public TimeSpan? Timeout { get; set; }