preloadtest

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package preloadtest provides utilities for preload link testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPreloadForRawLink(rawLink string) *preload.Preload

NewPreloadForRawLink is like preload.NewPreloadForLink, but takes an HTTP header value instead of an httplink.Link. rawLink must contain exactly one valid Web Linking; otherwise NewPreloadForRawLink panics.

func NewPreloadForRawURL

func NewPreloadForRawURL(rawurl, as string) *preload.Preload

NewPreloadForRawURL is like preload.NewPreloadForURL, but takes a URL string instead of a url.URL. It panics on error with parsing rawurl for ease of use in testing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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