httpProtocolScan

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckHttpRedirects

func CheckHttpRedirects(url string, isAvailableViaHttp bool, isAvailableViaHttps bool) (int, string, int, string, error)

Verifies http and https configuration for best practices Returns http and https status codes & redirect locations, which are "" if they don't redirect plus an potential error

func CheckHttpVersions

func CheckHttpVersions(schema string, url string) ([]string, error)

Takes url and whether http and/or https should be checked and checks which HTTP versions the server can speak for each Return available versions on http, then https and finally a potential error

func GetHttpProtocolRecommendationsForResult

func GetHttpProtocolRecommendationsForResult(input string, result Result, isAvailableViaHttp bool, isAvailableViaHttps bool) []string

func PrintResult

func PrintResult(result Result)

Types

type Result

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

func Scan

func Scan(status *status.Status, input string, isAvailableViaHttp bool, isAvailableViaHttps bool) (Result, error)

Jump to

Keyboard shortcuts

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