package
0.0.0-20221027220206-53a1486f4205
Repository: https://github.com/google/webpackager.git
Documentation: pkg.go.dev
# Functions
CheckPrerequisites returns a Processor to verify the provided response meets all prerequisites as specified in config.
HTTPStatusCode ensures the response to have one of the provided HTTP status codes.
MaxContentLength requires the content (the response body) to be not larger then limit.
NewHTTPStatusError creates a new HTTPStatusError.
# Variables
HTTPStatusOK ensures the response to have the status code 200 (OK).
# Structs
Config holds the parameters to CheckPrerequisites.
HTTPStatusError represents an HTTP status error.