Table of Contents

Class RequestOptions

Namespace
Twikit.Api
Assembly
Twikit.dll

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

bool

CheckUserState

429 のとき user_state を確認して凍結と区別するか(再帰防止のため内部で false にします)。

public bool CheckUserState { get; set; }

Property Value

bool

Files

multipart/form-data のファイル。

public List<MultipartFile>? Files { get; set; }

Property Value

List<MultipartFile>

FollowRedirects

リダイレクトを追うか(httpx 同様、既定では追いません)。

public bool FollowRedirects { get; set; }

Property Value

bool

Form

application/x-www-form-urlencoded ボディ。

public Dictionary<string, string>? Form { get; set; }

Property Value

Dictionary<string, string>

Headers

追加ヘッダー。

public Dictionary<string, string>? Headers { get; set; }

Property Value

Dictionary<string, string>

Json

JSON ボディ。

public JsonNode? Json { get; set; }

Property Value

JsonNode

Params

クエリ文字列。

public Dictionary<string, string>? Params { get; set; }

Property Value

Dictionary<string, string>

RaiseException

4xx/5xx を例外にするか。

public bool RaiseException { get; set; }

Property Value

bool

Timeout

このリクエストだけのタイムアウト。

public TimeSpan? Timeout { get; set; }

Property Value

TimeSpan?