Skip to content

Most visited

Recently visited


HttpEntityEnclosingRequest | Android Developers

to top
Android APIs
public interface


implements HttpRequest
Known Indirect Subclasses

Class Overview

A request with an entity.


Public Methods
abstract boolean expectContinue()
Tells if this request should use the expect-continue handshake.
abstract HttpEntity getEntity()
abstract void setEntity(HttpEntity entity)
Hands the entity to the request.
Inherited Methods
From interface org.apache.http.HttpMessage
From interface org.apache.http.HttpRequest

Public Methods

public abstract boolean expectContinue ()

Added in API level 1

Tells if this request should use the expect-continue handshake. The expect continue handshake gives the server a chance to decide whether to accept the entity enclosing request before the possibly lengthy entity is sent across the wire.

  • true if the expect continue handshake should be used, false if not.

public abstract HttpEntity getEntity ()

Added in API level 1

public abstract void setEntity (HttpEntity entity)

Added in API level 1

Hands the entity to the request.

entity the entity to send.
This site uses cookies to store your preferences for site-specific language and display options.


This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.