C# Класс IBM.Cloudant.Client.BasicAuthenticationInterceptor

Sample interceptor implementation that adds basic authentication to HTTP requests. It does this by adding an Authentication header with Basic authentication using the provided username and password.
This class is used for adding basic authentication to HTTP requests.
Наследование: IHttpConnectionRequestInterceptor, IHttpConnectionResponseInterceptor
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
BasicAuthenticationInterceptor ( string username, string password ) : System

Initializes a new instance of the IBM.Cloudant.Client.BasicAuthenticationInterceptor class with the specified username and password.

InterceptRequest ( HttpConnectionInterceptorContext context ) : HttpConnectionInterceptorContext

Intercepts the HttpRequest before it is sent.

InterceptResponse ( HttpConnectionInterceptorContext context ) : HttpConnectionInterceptorContext

Intercepts the HttpResponse before it is consumed.

Описание методов

BasicAuthenticationInterceptor() публичный Метод

Initializes a new instance of the IBM.Cloudant.Client.BasicAuthenticationInterceptor class with the specified username and password.
public BasicAuthenticationInterceptor ( string username, string password ) : System
username string Username for the http request.
password string Password for the user specified by username.
Результат System

InterceptRequest() публичный Метод

Intercepts the HttpRequest before it is sent.
public InterceptRequest ( HttpConnectionInterceptorContext context ) : HttpConnectionInterceptorContext
context HttpConnectionInterceptorContext Http connection interceptor context with the current state.
Результат HttpConnectionInterceptorContext

InterceptResponse() публичный Метод

Intercepts the HttpResponse before it is consumed.
public InterceptResponse ( HttpConnectionInterceptorContext context ) : HttpConnectionInterceptorContext
context HttpConnectionInterceptorContext Http connection interceptor context with the current state.
Результат HttpConnectionInterceptorContext