BasicHttpProcessor.AddInterceptor Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| AddInterceptor(IHttpRequestInterceptor) | |
| AddInterceptor(IHttpResponseInterceptor) | |
| AddInterceptor(IHttpRequestInterceptor, Int32) | |
| AddInterceptor(IHttpResponseInterceptor, Int32) |
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)
[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)
[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.