C# Class RestBucks.Infrastructure.ResponseHelpers

Datei anzeigen Open project: horsdal/Restbucks-on-Nancy

Public Methods

Method Description
BadRequest ( this formatter, string reason = "", string content = "" ) : Response
Created ( this formatter, string location ) : Response
MovedTo ( this formatter, string newUri ) : Response
NotModified ( this formatter, System.TimeSpan maxAge = null ) : Response
WithCacheHeaders ( this response, IVersionable versionable, System.TimeSpan maxAge = null ) : Nancy.Responses.Negotiation.Negotiator

Method Details

BadRequest() public static method

public static BadRequest ( this formatter, string reason = "", string content = "" ) : Response
formatter this
reason string
content string
return Nancy.Response

Created() public static method

public static Created ( this formatter, string location ) : Response
formatter this
location string
return Nancy.Response

MovedTo() public static method

public static MovedTo ( this formatter, string newUri ) : Response
formatter this
newUri string
return Nancy.Response

NotModified() public static method

public static NotModified ( this formatter, System.TimeSpan maxAge = null ) : Response
formatter this
maxAge System.TimeSpan
return Nancy.Response

WithCacheHeaders() public static method

public static WithCacheHeaders ( this response, IVersionable versionable, System.TimeSpan maxAge = null ) : Nancy.Responses.Negotiation.Negotiator
response this
versionable IVersionable
maxAge System.TimeSpan
return Nancy.Responses.Negotiation.Negotiator