C# 클래스 UnitTests.Subtext.SimulatedHttpRequest

Used to simulate an HttpRequest.
상속: System.Web.Hosting.SimpleWorkerRequest
파일 보기 프로젝트 열기: ayende/Subtext 1 사용 예제들

공개 메소드들

메소드 설명
GetAppPath ( ) : string

Returns the virtual path to the currently executing server application.

GetAppPathTranslated ( ) : string
GetFilePathTranslated ( ) : string
GetHttpVerbName ( ) : string

Returns the specified member of the request header.

GetKnownRequestHeader ( int index ) : string
GetLocalPort ( ) : int
GetPreloadedEntityBody ( ) : byte[]

Reads request data from the client (when not preloaded).

GetServerName ( ) : string

Gets the name of the server.

GetUnknownRequestHeaders ( ) : string[][]

Get all nonstandard HTTP header name-value pairs.

GetUriPath ( ) : string
IsEntireEntityBodyIsPreloaded ( ) : bool

Returns a value indicating whether all request data is available and no further reads from the client are required.

SimulatedHttpRequest ( string applicationPath, string physicalAppPath, string physicalFilePath, string page, string query, TextWriter output, string host, int port, string verb ) : System

Creates a new SimulatedHttpRequest instance.

비공개 메소드들

메소드 설명
SetReferer ( Uri referer ) : void

메소드 상세

GetAppPath() 공개 메소드

Returns the virtual path to the currently executing server application.
public GetAppPath ( ) : string
리턴 string

GetAppPathTranslated() 공개 메소드

public GetAppPathTranslated ( ) : string
리턴 string

GetFilePathTranslated() 공개 메소드

public GetFilePathTranslated ( ) : string
리턴 string

GetHttpVerbName() 공개 메소드

Returns the specified member of the request header.
public GetHttpVerbName ( ) : string
리턴 string

GetKnownRequestHeader() 공개 메소드

public GetKnownRequestHeader ( int index ) : string
index int
리턴 string

GetLocalPort() 공개 메소드

public GetLocalPort ( ) : int
리턴 int

GetPreloadedEntityBody() 공개 메소드

Reads request data from the client (when not preloaded).
public GetPreloadedEntityBody ( ) : byte[]
리턴 byte[]

GetServerName() 공개 메소드

Gets the name of the server.
public GetServerName ( ) : string
리턴 string

GetUnknownRequestHeaders() 공개 메소드

Get all nonstandard HTTP header name-value pairs.
public GetUnknownRequestHeaders ( ) : string[][]
리턴 string[][]

GetUriPath() 공개 메소드

public GetUriPath ( ) : string
리턴 string

IsEntireEntityBodyIsPreloaded() 공개 메소드

Returns a value indicating whether all request data is available and no further reads from the client are required.
public IsEntireEntityBodyIsPreloaded ( ) : bool
리턴 bool

SimulatedHttpRequest() 공개 메소드

Creates a new SimulatedHttpRequest instance.
public SimulatedHttpRequest ( string applicationPath, string physicalAppPath, string physicalFilePath, string page, string query, TextWriter output, string host, int port, string verb ) : System
applicationPath string App virtual dir.
physicalAppPath string Physical Path to the app.
physicalFilePath string Physical Path to the file.
page string The Part of the URL after the application.
query string Query.
output System.IO.TextWriter Output.
host string Host.
port int Port to request.
verb string The HTTP Verb to use.
리턴 System