package
0.0.0-20221027220206-53a1486f4205
Repository: https://github.com/google/webpackager.git
Documentation: pkg.go.dev
# Packages
Package exchangetest provides utilities for exchange testing.
Package vprule defines how to determine the validity period of signed exchanges.
# Functions
NewFactory creates and initializes a new Factory.
NewResponse creates and initializes a new Response wrapping resp.
NewValidPeriod creates and initializes a new ValidPeriod from the date and expires parameters.
NewValidPeriodWithLifetime creates and initializes a new ValidPeriod from the date parameter and the lifetime.
ReadExchangeFile reads a signed exchange from a file.
# Constants
These are the default values in Config.
These are the default values in Config.
See htmltask.ExtractSubContentTypes.
# Variables
DefaultCertURL is the default value for CertURL in Config.
# Structs
Config holds the parameters to produce signed exchanges.
Factory produces and verifies signed exchanges.
Response represents a pre-signed HTTP exchange to make a signed exchange from.
ValidPeriod represents the period the signed exchange is valid for.
# Interfaces
FactoryProvider provides Factory.