Http

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HttpCommand

func HttpCommand() *cobra.Command

Func - HttpCommand

func HttpCommandLink(cmd *cobra.Command, args []string)

Func - HttpCommandLink: obtain Flags and call HttpCommandMain()

func HttpCommandMain

func HttpCommandMain(recording bool, displayRow int, HttpVarInput HttpVar, HttpMethod string, HttpStatusCodes []ntPinger.HttpStatusCode, count int, timeout int, interval int) error

Func - HttpCommandMain

func ParseStatusCodes added in v1.2.0

func ParseStatusCodes(inputs []string) ([]ntPinger.HttpStatusCode, error)

ParseStatusCodes converts []string into []HttpStatusCode Accepts only "2xx", "3xx", "4xx", "5xx" or exact codes (100–599).

Types

type HttpVar

type HttpVar struct {
	Scheme   string
	Hostname string
	Port     int
	Path     string
}

func ParseURL

func ParseURL(inputURL string) (HttpVar, error)

ParseURL extracts scheme, hostname, port, and path from a URL

Jump to

Keyboard shortcuts

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