accept

package
v0.0.0-...-a20b76d Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const AcceptedSxgVersion = "b3"

The SXG version that packager can produce. In the future, it may need to be able to produce multiple versions.

View Source
const SxgContentType = "application/signed-exchange;v=" + AcceptedSxgVersion

The Content-Type for the SXG version that the signer produces.

Variables

View Source
var SxgVersion = version.Version1b3

The enum of the SXG version that the signer produces, for passing to the signedexchange library.

Functions

func CanSatisfy

func CanSatisfy(accept string) bool

True if the given Accept header is one that the packager can satisfy. It must contain application/signed-exchange;v=$V so that the packager knows whether or not it can supply the correct version. "" and "*/*" are not satisfiable, for this reason.

Types

This section is empty.

Jump to

Keyboard shortcuts

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