Language

HttpService Constructors

Definition

Overloads

Name Description
HttpService(IntPtr, JniHandleOwnership)

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

HttpService(IHttpProcessor, IConnectionReuseStrategy, IHttpResponseFactory)

Create a new HTTP service.

HttpService(IntPtr, JniHandleOwnership)

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

protected HttpService(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Org.Apache.Http.Protocol.HttpService : nativeint * Android.Runtime.JniHandleOwnership -> Org.Apache.Http.Protocol.HttpService

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

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

HttpService(IHttpProcessor, IConnectionReuseStrategy, IHttpResponseFactory)

Create a new HTTP service.

[Android.Runtime.Register(".ctor", "(Lorg/apache/http/protocol/HttpProcessor;Lorg/apache/http/ConnectionReuseStrategy;Lorg/apache/http/HttpResponseFactory;)V", "")]
public HttpService(Org.Apache.Http.Protocol.IHttpProcessor? proc, Org.Apache.Http.IConnectionReuseStrategy? connStrategy, Org.Apache.Http.IHttpResponseFactory? responseFactory);
[<Android.Runtime.Register(".ctor", "(Lorg/apache/http/protocol/HttpProcessor;Lorg/apache/http/ConnectionReuseStrategy;Lorg/apache/http/HttpResponseFactory;)V", "")>]
new Org.Apache.Http.Protocol.HttpService : Org.Apache.Http.Protocol.IHttpProcessor * Org.Apache.Http.IConnectionReuseStrategy * Org.Apache.Http.IHttpResponseFactory -> Org.Apache.Http.Protocol.HttpService

Parameters

proc
IHttpProcessor

The processor for requests and responses. This must not be null.

connStrategy
IConnectionReuseStrategy

The strategy that decides whether to keep the connection open after a response. This must not be null.

responseFactory
IHttpResponseFactory

The factory used to create responses. This must not be null.

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