Versions in this module Expand all Collapse all v0 v0.3.0 Feb 1, 2023 v0.2.0 Mar 23, 2021 Changes in this version + const DefaultConnPerHost + const DefaultParallelHosts + type Client struct + MaxConnPerHost int + MaxParallelHosts int + func New() *Client + func (c *Client) GetParallelHosts(targets []string) error + func (c *Client) GetPathDiffOnHost(base string, targets []string, opts ...ParallelOption) error + func (c *Client) GetPathsOnHost(base string, targets []string, opts ...ParallelOption) error + type Diff struct + H2C *res + HTTP2 *res + type DiffState struct + H2C State + Host string + Normal State + SameHeaders http.Header + func (d DiffState) Map() map[string]interface{} + func (d DiffState) String() string + type Doer interface + Do func(req *http.Request) (*http.Response, error) + type ParallelOption func(o *ParallelOptions) + func PrettyPrint(v bool) ParallelOption + func RequestHeader(key string, value string) ParallelOption + func RequestMethod(method string) ParallelOption + type ParallelOptions struct + PrettyPrint bool + RequestMutations []RequestMutation + type RequestMutation func(req *http.Request) + type ResponseDiff struct + DeleteOnShow bool + PrettyPrint bool + func NewDiffer(DeleteOnShow bool) *ResponseDiff + func (r *ResponseDiff) ShowDiffH2C(http2res *res) + func (r *ResponseDiff) ShowDiffHTTP2(http2res *res) + type State struct + Body string + Error error + Headers http.Header + ResponseBodyLength int + StatusCode int + func (s State) String() string