Language

BasicHttpProcessor.AddInterceptor Method

Definition

Overloads

Name Description
AddInterceptor(IHttpRequestInterceptor)

Same as AddRequestInterceptor(IHttpRequestInterceptor).

AddInterceptor(IHttpResponseInterceptor)

Same as AddResponseInterceptor(IHttpResponseInterceptor).

AddInterceptor(IHttpRequestInterceptor, Int32)

Inserts a request interceptor at the supplied position in the request-interceptor list.

AddInterceptor(IHttpResponseInterceptor, Int32)

Inserts a response interceptor at the supplied position in the response-interceptor list.

AddInterceptor(IHttpRequestInterceptor)

[Android.Runtime.Register("addInterceptor", "(Lorg/apache/http/HttpRequestInterceptor;)V", "")]
public void AddInterceptor(Org.Apache.Http.IHttpRequestInterceptor? interceptor);
[<Android.Runtime.Register("addInterceptor", "(Lorg/apache/http/HttpRequestInterceptor;)V", "")>]
member this.AddInterceptor : Org.Apache.Http.IHttpRequestInterceptor -> unit

Parameters

interceptor
IHttpRequestInterceptor

the interceptor to add

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

AddInterceptor(IHttpResponseInterceptor)

[Android.Runtime.Register("addInterceptor", "(Lorg/apache/http/HttpResponseInterceptor;)V", "")]
public void AddInterceptor(Org.Apache.Http.IHttpResponseInterceptor? interceptor);
[<Android.Runtime.Register("addInterceptor", "(Lorg/apache/http/HttpResponseInterceptor;)V", "")>]
member this.AddInterceptor : Org.Apache.Http.IHttpResponseInterceptor -> unit

Parameters

interceptor
IHttpResponseInterceptor

the interceptor to add

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

AddInterceptor(IHttpRequestInterceptor, Int32)

Inserts a request interceptor at the supplied position in the request-interceptor list.

[Android.Runtime.Register("addInterceptor", "(Lorg/apache/http/HttpRequestInterceptor;I)V", "")]
public void AddInterceptor(Org.Apache.Http.IHttpRequestInterceptor? interceptor, int index);
[<Android.Runtime.Register("addInterceptor", "(Lorg/apache/http/HttpRequestInterceptor;I)V", "")>]
member this.AddInterceptor : Org.Apache.Http.IHttpRequestInterceptor * int -> unit

Parameters

interceptor
IHttpRequestInterceptor

The request interceptor to insert. A null interceptor is ignored after the index is checked for a negative value.

index
Int32

The zero-based insertion index. For a non-null interceptor, this must be between zero and the request interceptor count, inclusive.

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

AddInterceptor(IHttpResponseInterceptor, Int32)

Inserts a response interceptor at the supplied position in the response-interceptor list.

[Android.Runtime.Register("addInterceptor", "(Lorg/apache/http/HttpResponseInterceptor;I)V", "")]
public void AddInterceptor(Org.Apache.Http.IHttpResponseInterceptor? interceptor, int index);
[<Android.Runtime.Register("addInterceptor", "(Lorg/apache/http/HttpResponseInterceptor;I)V", "")>]
member this.AddInterceptor : Org.Apache.Http.IHttpResponseInterceptor * int -> unit

Parameters

interceptor
IHttpResponseInterceptor

The response interceptor to insert. A null interceptor is ignored after the index is checked for a negative value.

index
Int32

The zero-based insertion index. For a non-null interceptor, this must be between zero and the response interceptor count, inclusive.

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