Language

StrictContentLengthStrategy.DetermineLength(IHttpMessage) Method

Definition

Determines the body length of an HTTP message from its transfer-encoding and content-length headers.

[Android.Runtime.Register("determineLength", "(Lorg/apache/http/HttpMessage;)J", "GetDetermineLength_Lorg_apache_http_HttpMessage_Handler")]
public virtual long DetermineLength(Org.Apache.Http.IHttpMessage? message);
[<Android.Runtime.Register("determineLength", "(Lorg/apache/http/HttpMessage;)J", "GetDetermineLength_Lorg_apache_http_HttpMessage_Handler")>]
abstract member DetermineLength : Org.Apache.Http.IHttpMessage -> int64
override this.DetermineLength : Org.Apache.Http.IHttpMessage -> int64

Parameters

message
IHttpMessage

The HTTP message whose body length is determined.

Returns

The parsed content-length value, which can be negative, or a sentinel value that indicates chunked or identity transfer encoding.

Implements

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to