C# Class Crowbar.CrowbarHttpResponse

Represents the response of the HTTP worker.
显示文件 Open project: mrydengren/crowbar Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
AddHeader ( string name, string value ) : void

Adds an HTTP headers to the response.

CrowbarHttpResponse ( ) : System

Creates an instance of CrowbarHttpResponse.

GetHeaders ( ) : NameValueCollection

Returns the HTTP headers for the response.

GetResponseBody ( ) : string

Returns the response body.

ToString ( ) : string

Method Details

AddHeader() public method

Adds an HTTP headers to the response.
public AddHeader ( string name, string value ) : void
name string The name of the header.
value string The value of the header.
return void

CrowbarHttpResponse() public method

Creates an instance of CrowbarHttpResponse.
public CrowbarHttpResponse ( ) : System
return System

GetHeaders() public method

Returns the HTTP headers for the response.
public GetHeaders ( ) : NameValueCollection
return System.Collections.Specialized.NameValueCollection

GetResponseBody() public method

Returns the response body.
public GetResponseBody ( ) : string
return string

ToString() public method

public ToString ( ) : string
return string