h2push

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinkPusher

type LinkPusher struct {
	Link string
}

LinkPusher pushes a link

func Push

func Push(link string) *LinkPusher

Push pushs a link

func (LinkPusher) ServeHandler

func (m LinkPusher) ServeHandler(h http.Handler) http.Handler

ServeHandler implements middleware interface

type PreloadPusher

type PreloadPusher struct{}

PreloadPusher pushes preload link

func Preload

func Preload() *PreloadPusher

Preload creates new PreloadPusher

func (PreloadPusher) ServeHandler

func (m PreloadPusher) ServeHandler(h http.Handler) http.Handler

ServeHandler implements middleware interface

Jump to

Keyboard shortcuts

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