IHttpEntity IHttpEntity Interface



This API is now obsolete.

An entity that can be sent or received with an HTTP message.

[Android.Runtime.Register("org/apache/http/HttpEntity", "", "Org.Apache.Http.IHttpEntityInvoker", ApiSince=1)]
[System.Obsolete("This class is obsoleted in this android platform")]
public interface IHttpEntity : Android.Runtime.IJavaObject, IDisposable
type IHttpEntity = interface
    interface IJavaObject
    interface IDisposable


Android platform documentation

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.


Content Content

Creates a new InputStream object of the entity.

ContentEncoding ContentEncoding

Obtains the Content-Encoding header, if known.

ContentLength ContentLength

Tells the length of the content, if known.

ContentType ContentType

Obtains the Content-Type header, if known.

Handle Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)
IsChunked IsChunked

Tells about chunked encoding for this entity.

IsRepeatable IsRepeatable

Tells if the entity is capable to produce its data more than once.

IsStreaming IsStreaming

Tells whether this entity depends on an underlying stream.


ConsumeContent() ConsumeContent()

TODO: The name of this method is misnomer.

WriteTo(Stream) WriteTo(Stream)

Writes the entity content to the output stream.

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
WriteToAsync(IHttpEntity, Stream) WriteToAsync(IHttpEntity, Stream)

Applies to