C# Класс RestBucks.Infrastructure.ResponseHelpers

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

BadRequest() публичный статический Метод

public static BadRequest ( this formatter, string reason = "", string content = "" ) : Response
formatter this
reason string
content string
Результат Nancy.Response

Created() публичный статический Метод

public static Created ( this formatter, string location ) : Response
formatter this
location string
Результат Nancy.Response

MovedTo() публичный статический Метод

public static MovedTo ( this formatter, string newUri ) : Response
formatter this
newUri string
Результат Nancy.Response

NotModified() публичный статический Метод

public static NotModified ( this formatter, System.TimeSpan maxAge = null ) : Response
formatter this
maxAge System.TimeSpan
Результат Nancy.Response

WithCacheHeaders() публичный статический Метод

public static WithCacheHeaders ( this response, IVersionable versionable, System.TimeSpan maxAge = null ) : Nancy.Responses.Negotiation.Negotiator
response this
versionable IVersionable
maxAge System.TimeSpan
Результат Nancy.Responses.Negotiation.Negotiator