Org.Apache.Http.IHttpEntity.ConsumeContent Method
TODO: The name of this method is misnomer.

Syntax

[Android.Runtime.Register("consumeContent", "()V", "GetConsumeContentHandler:Org.Apache.Http.IHttpEntityInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void ConsumeContent ()

Exceptions

TypeReason
Java.IO.IOExceptionif an I/O error occurs. This indicates that connection keep-alive is not possible.

Remarks

TODO: The name of this method is misnomer. It will be renamed to #finish() in the next major release.

This method is called to indicate that the content of this entity is no longer required. All entity implementations are expected to release all allocated resources as a result of this method invocation. Content streaming entities are also expected to dispose of the remaining content, if any. Wrapping entities should delegate this call to the wrapped entity.

This method is of particular importance for entities being received from a Org.Apache.Http.IHttpConnection. The entity needs to be consumed completely in order to re-use the connection with keep-alive.

[Android Documentation]

Requirements

Namespace: Org.Apache.Http
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1