C# 클래스 Stumps.ProxyHandler

A class implementing the T:Stumps.Http.IHttpHandler interface that proxies requests to an external host.
상속: IHttpHandler
파일 보기 프로젝트 열기: Cayan-LLC/stumps 1 사용 예제들

공개 메소드들

메소드 설명
ProcessRequest ( IStumpsHttpContext context ) : Task

Processes an incoming HTTP request.

ProxyHandler ( Uri externalHostUri ) : System

Initializes a new instance of the T:Stumps.ProxyHandler class.

비공개 메소드들

메소드 설명
BuildRemoteUrlFromContext ( IStumpsHttpContext incommingHttpContext ) : string

Builds the remote URL from context.

ExecuteRemoteWebRequest ( HttpWebRequest remoteWebRequest, HttpWebResponse &remoteWebResponse ) : bool
GetHeaderValue ( string>.Dictionary headers, string headerName, string defaultValue ) : string

Gets the value of a header.

PopulateRemoteBodyFromContext ( IStumpsHttpContext incommingHttpContext, HttpWebRequest remoteWebRequest, HttpWebResponse &remoteWebResponse ) : bool

Populates the remote body from context.

PopulateRemoteHeadersFromContext ( IStumpsHttpContext incommingHttpContext, HttpWebRequest remoteWebRequest ) : void
WriteContextBodyFromRemoteResponse ( IStumpsHttpContext incommingHttpContext, HttpWebResponse remoteWebResponse ) : void

Writes the context body from the remote response.

WriteContextHeadersFromResponse ( IStumpsHttpContext incommingHttpContext, HttpWebResponse remoteWebResponse ) : void

Writes the context headers from the remote response.

메소드 상세

ProcessRequest() 공개 메소드

Processes an incoming HTTP request.
is null.
public ProcessRequest ( IStumpsHttpContext context ) : Task
context IStumpsHttpContext The representing both the incoming request and the response.
리턴 Task

ProxyHandler() 공개 메소드

Initializes a new instance of the T:Stumps.ProxyHandler class.
public ProxyHandler ( Uri externalHostUri ) : System
externalHostUri System.Uri The external host URI.
리턴 System