Versions in this module Expand all Collapse all v0 v0.4.1 Mar 3, 2026 v0.4.0 Mar 3, 2026 Changes in this version + func AutoScheme(target string) string + func NormalizeURI(parts ...string) string + func WithPool(ctx context.Context, threads int, proxyURL string) context.Context + type Option func(*Session) + func WithProxy(proxyURL string) Option + func WithTransport(t *nethttp.Transport) Option + type Request struct + BasicAuth [2]string + Body io.Reader + ContentType string + Ctx context.Context + Form url.Values + Headers map[string]string + MaxBody int64 + Method string + NoCookies bool + NoRedirect bool + Path string + Query url.Values + Timeout time.Duration + type Response struct + func WrapResponse(resp *nethttp.Response) *Response + func (r *Response) BodyBytes() ([]byte, error) + func (r *Response) BodyString() (string, error) + func (r *Response) Contains(substr string) bool + func (r *Response) ContainsAll(substrs ...string) bool + func (r *Response) ContainsAny(substrs ...string) bool + func (r *Response) HTML() (*goquery.Document, error) + func (r *Response) JSON(target any) error + type Run struct + Ctx context.Context + Session *Session + Target string + TargetURI string + func FromModule(params sdk.Params, opts ...Option) *Run + func NewRun(ctx context.Context, target string, opts ...Option) *Run + func (r *Run) Send(req Request) (*Response, error) + type Session struct + func NewSession(opts ...Option) *Session + func (s *Session) Get(target string) (*Response, error) + func (s *Session) PostForm(target string, data url.Values) (*Response, error) + func (s *Session) Run(ctx context.Context, target string) *Run + func (s *Session) Send(target string, req Request) (*Response, error)