Android Guides | Samples

Org.Apache.Http.Protocol.HttpRequestExecutor Class

Sends HTTP requests and receives the responses.

See Also: HttpRequestExecutor

Syntax

[Android.Runtime.Register("org/apache/http/protocol/HttpRequestExecutor", DoNotGenerateAcw=true)]
public class HttpRequestExecutor : Object

Remarks

Sends HTTP requests and receives the responses. Takes care of request preprocessing and response postprocessing by the respective interceptors.

[Android Documentation]

Requirements

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

The members of Org.Apache.Http.Protocol.HttpRequestExecutor are listed below.

See Also: Object

Public Constructors

Create a new request executor.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

Execute(IHttpRequest, IHttpClientConnection, IHttpContext) : IHttpResponse
Synchronously send a request and obtain the response.
PostProcess(IHttpResponse, IHttpProcessor, IHttpContext)
Finish a response.
PreProcess(IHttpRequest, IHttpProcessor, IHttpContext)
Prepare a request for sending.

Protected Methods

CanResponseHaveBody(IHttpRequest, IHttpResponse) : Boolean
Decide whether a response comes with an entity.
DoReceiveResponse(IHttpRequest, IHttpClientConnection, IHttpContext) : IHttpResponse
Wait for and receive a response.
DoSendRequest(IHttpRequest, IHttpClientConnection, IHttpContext) : IHttpResponse
Send a request over a connection.