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
파일 보기 프로젝트 열기: cloudant/xamarin-cloudant 1 사용 예제들

공개 메소드들

메소드 설명
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