Versions in this module Expand all Collapse all v0 v0.6.0 May 15, 2026 Changes in this version + func URL(base, endpoint string, params any) (string, error) + type Codec interface + ContentType func() string + Marshal func(any) ([]byte, error) + Unmarshal func([]byte, any) error + type JSONCodec struct + func (JSONCodec) ContentType() string + func (JSONCodec) Marshal(v any) ([]byte, error) + func (JSONCodec) Unmarshal(data []byte, v any) error + type Option func(*Pipe) + func WithClient(client *http.Client) Option + func WithCodec(codec Codec) Option + type Pipe struct + func New(opts ...Option) *Pipe + func (pipe *Pipe) Do(req *http.Request, out any) (*http.Response, error) + func (pipe *Pipe) NewRequestWithContext(ctx context.Context, method, url string, body any) (*http.Request, error) + type XMLCodec struct + func (XMLCodec) ContentType() string + func (XMLCodec) Marshal(v any) ([]byte, error) + func (XMLCodec) Unmarshal(data []byte, v any) error