Table of Contents

Property BodyLength

Namespace
CurlUnity.Http

BodyLength

BodyStream 的总长度。

  • null: 设置 Content-Length header,libcurl 按 fixed-length 上传
  • null: 长度未知,libcurl 使用 Transfer-Encoding: chunked
MemoryStream / FileStream 这类可 seek 的 Stream,传 stream.Length - stream.Position 是常见做法。
long? BodyLength { get; set; }

Property Value

long?