C# Class Simplify.Web.Owin.OwinHttpRequestHelper

Provides OWIN and HTTP related utility functions
Exibir arquivo Open project: i4004/Simplify.Web

Public Methods

Method Description
GetIfModifiedSinceTime ( IHeaderDictionary headers ) : DateTime?

Gets If-Modified-Since time header from headers collection.

GetRelativeFilePath ( IOwinRequest request ) : string

Gets the relative file path of request.

IsNoCacheRequested ( string cacheControlHeader ) : bool

Determines whether no cache is requested

Method Details

GetIfModifiedSinceTime() public static method

Gets If-Modified-Since time header from headers collection.
public static GetIfModifiedSinceTime ( IHeaderDictionary headers ) : DateTime?
headers IHeaderDictionary The headers.
return DateTime?

GetRelativeFilePath() public static method

Gets the relative file path of request.
public static GetRelativeFilePath ( IOwinRequest request ) : string
request IOwinRequest The request.
return string

IsNoCacheRequested() public static method

Determines whether no cache is requested
public static IsNoCacheRequested ( string cacheControlHeader ) : bool
cacheControlHeader string The cache control header.
return bool