caching

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCachedRequest

func NewCachedRequest(w http.ResponseWriter, r *http.Request, headers []string) *cachedRequest

Types

type Caching

type Caching struct {
	// contains filtered or unexported fields
}

Caching is the core struct for caching

func NewCaching

func NewCaching(headers []string) *Caching

NewCaching creates a new caching struct

func (*Caching) Middleware

func (c *Caching) Middleware(next http.Handler) http.Handler

CahcingMiddleware returns the middleware for caching

Jump to

Keyboard shortcuts

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