C# Class ServiceStack.ServiceHost.Tests.Formats.ViewTests.MockHttpResponse

Inheritance: IHttpResponse
Mostrar archivo Open project: ServiceStack/ServiceStack Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
AddHeader ( string name, string value ) : void
ClearCookies ( ) : void
Close ( ) : void
End ( ) : void
Flush ( ) : void
GetHeader ( string name ) : string
MockHttpResponse ( IRequest httpReq ) : System
Redirect ( string url ) : void
SetContentLength ( long contentLength ) : void
SetCookie ( Cookie cookie ) : void
Write ( string text ) : void

Method Details

AddHeader() public method

public AddHeader ( string name, string value ) : void
name string
value string
return void

ClearCookies() public method

public ClearCookies ( ) : void
return void

Close() public method

public Close ( ) : void
return void

End() public method

public End ( ) : void
return void

Flush() public method

public Flush ( ) : void
return void

GetHeader() public method

public GetHeader ( string name ) : string
name string
return string

MockHttpResponse() public method

public MockHttpResponse ( IRequest httpReq ) : System
httpReq IRequest
return System

Redirect() public method

public Redirect ( string url ) : void
url string
return void

SetContentLength() public method

public SetContentLength ( long contentLength ) : void
contentLength long
return void

SetCookie() public method

public SetCookie ( Cookie cookie ) : void
cookie System.Net.Cookie
return void

Write() public method

public Write ( string text ) : void
text string
return void