htmlContentScan

package
v3.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCompression

func CheckCompression(response *http.Response) string

func GetExternalScriptSources

func GetExternalScriptSources(document *goquery.Document) []string

func GetExternalStylesheetSources

func GetExternalStylesheetSources(document *goquery.Document) []string

func GetInlineScriptSize

func GetInlineScriptSize(document *goquery.Document) (int, error)

func GetInlineStyleSize

func GetInlineStyleSize(document *goquery.Document) (int, error)

func PrintResult

func PrintResult(result Result, schemaName string)

func ValidateHtml

func ValidateHtml(body []byte) (string, error)

Types

type Result

type Result struct {
	// contains filtered or unexported fields
}

func Scan

func Scan(status *status.Status, inputUrl string, response *http.Response, responseBody []byte, client httpClient.Client, schemaName string) (Result, error)

Jump to

Keyboard shortcuts

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