Versions in this module Expand all Collapse all v0 v0.0.4 Mar 17, 2025 Changes in this version + func NewTool(c Client, opts contract.ToolOptions[Client]) *defaultTool + type Blackbox interface + type Client interface + CopyHeaders func(dst, src *http.Request, headers ...string) + GetHeaders func(r *http.Request) http.Header + QueryString func(pairs ...string) string + RespondError func(w http.ResponseWriter, status int, escapeHTML bool) + RespondGzipError func(w http.ResponseWriter, status int, escapeHTML bool) + RespondGzipJSON func(w http.ResponseWriter, v any, status int, escapeHTML bool) error + RespondJSON func(w http.ResponseWriter, v any, status int, escapeHTML bool) error + ServeHTML func(w http.ResponseWriter, body io.Reader, status int) + ValidateQueryParams func(q map[string][]string, rules ...*QueryParamRule) error + func NewClient(c *http.Client, g contract.GzipUtil, gw contract.GzipWriter, ...) (Client, error) + type QueryParamRule struct + AcceptedValues []string + DefaultValue string + Key string + MultipleValuesAllowed bool + Optional bool