htmlrewrite

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: Apache-2.0, BSD-2-Clause-Views, BSD-3-Clause, + 4 more Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendHeadContents added in v0.8.0

func AppendHeadContents(res *http.Response, appendWith []byte) error

AppendHeadContents allows to append the contents of the <head> tag in an HTTP text/html response.

On error, the response body is unchanged and the caller may proceed as if the function had not been called.

func PrependBodyContents added in v0.8.0

func PrependBodyContents(res *http.Response, prependWith []byte) error

PrependBodyContents allows to prepend the contents of the <body> tag in an HTTP text/html response.

On error, the response body is unchanged and the caller may proceed as if the function had not been called.

func PrependHeadContents added in v0.8.0

func PrependHeadContents(res *http.Response, prependWith []byte) error

PrependHeadContents allows to prepend the contents of the <head> tag in an HTTP text/html response.

On error, the response body is unchanged and the caller may proceed as if the function had not been called.

Types

This section is empty.

Jump to

Keyboard shortcuts

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