Versions in this module Expand all Collapse all v0 v0.1.4 Jul 11, 2026 Changes in this version + func ValidateURL(rawURL string) (*url.URL, error) + type BrowserOptions struct + Follow bool + Headers map[string]string + MaxRedirects int + Timeout time.Duration + func DefaultBrowserOptions() BrowserOptions + type BrowserTool struct + func NewBrowserTool(opts ...func(*BrowserOptions)) *BrowserTool + func (b *BrowserTool) Do(ctx context.Context, method, urlStr string, body io.Reader) (*Response, error) + func (b *BrowserTool) Get(ctx context.Context, urlStr string) (*Response, error) + func (b *BrowserTool) Post(ctx context.Context, urlStr string, body io.Reader) (*Response, error) + func (b *BrowserTool) SetHeader(key, value string) + type Formatter struct + func NewFormatter(indent int) *Formatter + func (f *Formatter) FormatResponse(resp *Response) string + type Response struct + Body []byte + Headers http.Header + RequestMethod string + StatusCode int + URL string + func (r *Response) IsSuccess() bool + func (r *Response) JSON() (map[string]interface{}, error) + func (r *Response) Text() string + type WebhookTester struct + func NewWebhookTester(opts ...func(*BrowserOptions)) *WebhookTester + func (w *WebhookTester) SendTestRequest(ctx context.Context, webhookURL string, payload interface{}) (*Response, error) + func (w *WebhookTester) ValidateWebhook(ctx context.Context, webhookURL string, expectedStatus int) error