C# Class Nancy.Response

Inheritance: IDisposable
Show file Open project: NancyFx/Nancy Class Usage Examples

Public Properties

Property Type Description
NoBody Action

Private Properties

Property Type Description

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

This method can be overridden in sub-classes to dispose of response specific resources.

PreExecute ( Nancy.NancyContext context ) : System.Threading.Tasks.Task

Executes at the end of the nancy execution pipeline and before control is passed back to the hosting. Can be used to pre-render/validate views while still inside the main pipeline/error handling.

Response ( ) : System

Initializes a new instance of the Response class.

Protected Methods

Method Description
GetStringContents ( string contents ) : Action

Converts a string content value to a response action.

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
This method can be overridden in sub-classes to dispose of response specific resources.
public Dispose ( ) : void
return void

GetStringContents() protected static method

Converts a string content value to a response action.
protected static GetStringContents ( string contents ) : Action
contents string The string containing the content.
return Action

PreExecute() public method

Executes at the end of the nancy execution pipeline and before control is passed back to the hosting. Can be used to pre-render/validate views while still inside the main pipeline/error handling.
public PreExecute ( Nancy.NancyContext context ) : System.Threading.Tasks.Task
context Nancy.NancyContext Nancy context
return System.Threading.Tasks.Task

Response() public method

Initializes a new instance of the Response class.
public Response ( ) : System
return System

Property Details

NoBody public static property

Null object representing no body
public static Action NoBody
return Action