C# Class RestBucks.Infrastructure.ResponseHelpers

Afficher le fichier Open project: horsdal/Restbucks-on-Nancy

Méthodes publiques

Méthode 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 méthode

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

Created() public static méthode

public static Created ( this formatter, string location ) : Response
formatter this
location string
Résultat Nancy.Response

MovedTo() public static méthode

public static MovedTo ( this formatter, string newUri ) : Response
formatter this
newUri string
Résultat Nancy.Response

NotModified() public static méthode

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

WithCacheHeaders() public static méthode

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