in cmd/http/http.go [28:46]
func params(cmd *cobra.Command, o *options.Options) (*runner.Params, error) {
ssl, err := cmd.Flags().GetBool("ssl")
if err != nil {
//nolint:wrapcheck
return nil, err
}
r, err := input.NewRequestGenerator(o.Input, inputTransformer(ssl, o.Target), requestCreator)
if err != nil {
//nolint:wrapcheck
return nil, err
}
t := &tester.Tester{
Timeout: o.Timeout,
}
return &runner.Params{Tester: t, RequestGenerator: r}, nil
}