C# Class Crowbar.CrowbarHttpRequest

Represents the request of an HTTP worker.
Inheritance: ICrowbarHttpRequest
ファイルを表示 Open project: mrydengren/crowbar

Public Methods

Method Description
CrowbarHttpRequest ( string path, IHttpPayload payload ) : System

Creates an instance of CrowbarHttpRequest. The requested path. The payload.

GetHeader ( string name, int index = -1 ) : string
GetHeaderNames ( ) : IEnumerable
GetMethod ( ) : string
GetProtocol ( ) : string
GetRequestBody ( ) : string
GetUrl ( string rawUrl ) : string

Private Methods

Method Description
CreateContentTypeHeader ( ) : string
CreateCookieHeader ( ) : string
CreateKnownRequestHeaderValue ( int index ) : string

Method Details

CrowbarHttpRequest() public method

Creates an instance of CrowbarHttpRequest. The requested path. The payload.
public CrowbarHttpRequest ( string path, IHttpPayload payload ) : System
path string
payload IHttpPayload
return System

GetHeader() public method

public GetHeader ( string name, int index = -1 ) : string
name string
index int
return string

GetHeaderNames() public method

public GetHeaderNames ( ) : IEnumerable
return IEnumerable

GetMethod() public method

public GetMethod ( ) : string
return string

GetProtocol() public method

public GetProtocol ( ) : string
return string

GetRequestBody() public method

public GetRequestBody ( ) : string
return string

GetUrl() public method

public GetUrl ( string rawUrl ) : string
rawUrl string
return string