Documentation
¶
Overview ¶
Copyright © 2024 Dr. Harald Leinders <harald@leinders.de>
Copyright © 2024 Dr. Harald Leinders <harald@leinders.de>
Copyright © 2024 Dr. Harald Leinders <harald@leinders.de>
Copyright © 2024 Dr. Harald Leinders <harald@leinders.de>
Copyright © 2024 Dr. Harald Leinders <harald@leinders.de>
Copyright © 2024 Dr. Harald Leinders <harald@leinders.de>
Copyright © 2024 Dr. Harald Leinders <harald@leinders.de>
Copyright © 2024 Dr. Harald Leinders <harald@leinders.de>
Copyright © 2024 NAME HERE <EMAIL ADDRESS>
Index ¶
- Constants
- Variables
- func ExecCertificate(cmd *cobra.Command, args []string)
- func ExecContent(cmd *cobra.Command, args []string)
- func ExecCookies(cmd *cobra.Command, args []string)
- func ExecHeaders(cmd *cobra.Command, args []string)
- func ExecRedirects(cmd *cobra.Command, args []string)
- func ExecVersions(cmd *cobra.Command, args []string)
- func Execute()
- func PersistentPreRun(cmd *cobra.Command, args []string)
- type Cert
- type CertificateFlags
- type ConnectionSetup
- type ContentFlags
- type CookieFlags
- type HeaderFlags
- type RedirectFlags
- type RequestMethod
- type RootFlags
- type WebRequest
- type WebRequestResult
- func (r WebRequestResult) GetRequest() string
- func (r WebRequestResult) PrettyPrintFirst() string
- func (r WebRequestResult) PrettyPrintLast() string
- func (r WebRequestResult) PrettyPrintNormal(lastStatusCode int) string
- func (r WebRequestResult) PrettyPrintRedir(num int) string
- func (r WebRequestResult) String() string
Constants ¶
View Source
const ( OK = iota ErrUndef ErrNoArg ErrCookieJar ErrRequest ErrResponse ErrResolve ErrGetFlag ErrTimeFmt ErrNoURL ErrFileIO ErrNoFile ErrNoMethod )
Return values
View Source
const ( AppName = "HtProbe" AppVersion = "1.7 (2024-09-23)" Author = "Harald Leinders <harald@leinders.de>" DefaultConnectionTimeout = 3 MaxRedirects = 25 MaxHeaderLen = 30 )
Variables ¶
Functions ¶
func ExecCertificate ¶
func ExecContent ¶
func ExecCookies ¶
func ExecHeaders ¶
func ExecRedirects ¶
func ExecVersions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func PersistentPreRun ¶
Types ¶
type CertificateFlags ¶
type CertificateFlags struct {
// contains filtered or unexported fields
}
type ConnectionSetup ¶
type ConnectionSetup struct {
// contains filtered or unexported fields
}
type ContentFlags ¶
type ContentFlags struct {
// contains filtered or unexported fields
}
type CookieFlags ¶
type CookieFlags struct {
// contains filtered or unexported fields
}
type HeaderFlags ¶
type HeaderFlags struct {
// contains filtered or unexported fields
}
type RedirectFlags ¶
type RedirectFlags struct {
// contains filtered or unexported fields
}
type RequestMethod ¶
type RequestMethod struct {
// contains filtered or unexported fields
}
type WebRequest ¶
type WebRequest struct {
// contains filtered or unexported fields
}
func (WebRequest) String ¶
func (r WebRequest) String() string
type WebRequestResult ¶
type WebRequestResult struct {
// contains filtered or unexported fields
}
func (WebRequestResult) GetRequest ¶
func (r WebRequestResult) GetRequest() string
func (WebRequestResult) PrettyPrintFirst ¶
func (r WebRequestResult) PrettyPrintFirst() string
func (WebRequestResult) PrettyPrintLast ¶
func (r WebRequestResult) PrettyPrintLast() string
func (WebRequestResult) PrettyPrintNormal ¶
func (r WebRequestResult) PrettyPrintNormal(lastStatusCode int) string
func (WebRequestResult) PrettyPrintRedir ¶
func (r WebRequestResult) PrettyPrintRedir(num int) string
func (WebRequestResult) String ¶
func (r WebRequestResult) String() string
Click to show internal directories.
Click to hide internal directories.