Instance Property インスタンスプロパティ

countOfBytesClientExpectsToSend

A best-guess upper bound on the number of bytes the client expects to send. クライアントが送信することを期待するバイトの数の、最も妥当な上側境界。

Declaration 宣言

var countOfBytesClientExpectsToSend: Int64 { get set }

Discussion 議論

The value set for this property should account for the size of HTTP headers and body data or body stream. If no value is specified, the system uses NSURLSessionTransferSizeUnknown instead. This property is used by the system to optimize the scheduling of URL session tasks. Developers are strongly encouraged to provide an approximate upper bound, or an exact byte count, if possible, rather than accept the default. このプロパティに対して設定される値は、HTTPヘッダとボディデータまたはボディストリームのサイズの説明をすべきです。どんな値も指定されないならば、システムはNSURLSessionTransferSizeUnknownを代わりに使います。このプロパティは、URLセッションタスクの予定を最適化するために、システムによって使われます。開発者は、適切な上側境界、または正確なバイト計数を提供することを強く推奨されます、可能ならば、省略時のものを受け入れるよりも。

See Also 参照

Scheduling Tasks タスクを予定する