requests

package
v2.15.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2022 License: MIT Imports: 15 Imported by: 0

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 NewRequestsHandler(cache cache.Cache, s *storage.Storage, log *zap.Logger) *Requests

func (*Requests) GetCC

func (req *Requests) GetCC() *CacheControl

func (*Requests) PutCC

func (req *Requests) PutCC(cc *CacheControl)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL