Skip to content

Commit

Permalink
testing version of http
Browse files Browse the repository at this point in the history
  • Loading branch information
rbarazzutti committed Jul 17, 2023
1 parent 745fc68 commit 1c0cacd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ type Config struct {
Workers int
Throughput bool
ThroughputRefresh time.Duration
TestVersion bool
}

// RuntimeConfig defines the parameters which can be passed to NewPinger and NewWebClientBuilder
Expand Down
4 changes: 3 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ func prepareRootCmd(appLogic func(config *app.Config, stdout io.Writer) (app.HTT

rootCmd.Flags().BoolVarP(&config.DisableHTTP2, "disable-http2", "", false, "disable the HTTP/2 protocol")

rootCmd.Flags().BoolVarP(&config.Http3, "use-http3", "", false, "Use the HTTP/3 protocol")
rootCmd.Flags().BoolVarP(&config.Http3, "use-http3", "", false, "use the HTTP/3 protocol")

rootCmd.Flags().BoolVarP(&config.FullDNS, "dns-full-resolution", "D", false, "enable full DNS resolution from the root servers")

Expand All @@ -304,5 +304,7 @@ func prepareRootCmd(appLogic func(config *app.Config, stdout io.Writer) (app.HTT

rootCmd.Flags().DurationVarP(&config.ThroughputRefresh, "throughput-refresh", "T", 5*time.Second, "sampling time for measuring throughput")

rootCmd.Flags().BoolVarP(&config.TestVersion, "test-http-version", "", false, "test HTTP protocol versions available on target")

return rootCmd
}

0 comments on commit 1c0cacd

Please sign in to comment.