package
1.68.0
Repository: https://github.com/fortio/fortio.git
Documentation: pkg.go.dev

# Functions

ConnectionReuseRangeValidator returns a validator function that checks if the connection reuse range is valid and set in httpOpts.
FetchURL is fetching url content and exiting with 1 upon error.
SharedHTTPOptions is the flag->httpoptions transfer code shared between fortio_main and fcurl.
SharedMain is the common part of main from fortio_main and fcurl.
TLSInsecure returns true if -k or -https-insecure was passed.

# Variables

CACertFlag is the flag for the path of the custom CA to verify server certificates in client calls.
CertFlag is the flag for the path for the client custom certificate.
ConnectionReuseRange Dynamic string flag to set the max connection reuse range.
KeyFlag is the flag for the path for the key for the `cert`.
LogErrorsFlag determines if the non-OK HTTP error codes get logged as they occur or not.
NoReResolveFlag is false if we want to resolve the DNS name for each new connection.
PayloadFileFlag is the value of -paylaod-file.
PayloadFlag is the value of -payload.
PayloadSizeFlag is the value of -payload-size.
PayloadStreamFlag for streaming payload from stdin (curl only).
RunIDFlag is optional RunID to be present in JSON results (and default JSON result filename if not 0).

# Type aliases

FortioHook is used in fortio/cli and fortio/rapi to customize the run and introduce for instance clienttrace and fortiotel access logger.