response

package
v0.0.9-generics-v.0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleETag

func HandleETag(ctx context.Context, reqRes httptrip.RoundTripper, maxAgeSeconds time.Duration, httpStatus int)

handleETag passes through the http status and response if the cache is stale (or does not yet exist). If the cache is fresh and a success case with non-empty body, this will return 304 Not Modified with an empty body.

Types

This section is empty.

Jump to

Keyboard shortcuts

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