Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheControl ¶
type CacheControl struct { MaxAge *uint64 MaxStale *uint64 MinFresh *uint64 NoCache bool NoStore bool NoTransform bool OnlyIfCached bool }
CacheControl represents possible Cache-Control request header values
func (*CacheControl) Reset ¶
func (r *CacheControl) Reset()
type Requests ¶
type Requests struct {
// contains filtered or unexported fields
}
func NewRequestsHandler ¶
func (*Requests) GET ¶
func (req *Requests) GET(w http.ResponseWriter, r *http.Request, next http.Handler, cc *CacheControl, start time.Time)
func (*Requests) GetCC ¶
func (req *Requests) GetCC() *CacheControl
func (*Requests) PutCC ¶
func (req *Requests) PutCC(cc *CacheControl)
Click to show internal directories.
Click to hide internal directories.