Versions in this module Expand all Collapse all v3 v3.3.0 Jul 18, 2024 Changes in this version + const RequestBodyComponent + const RequestCookieComponent + const RequestHeaderComponent + const RequestPathComponent + const RequestQueryComponent + var Components = []string + var ErrKeyNotFound = errors.New("key not found") + var ErrSetValue = errors.New("could not set value") + func IsErrSetValue(err error) bool + func IsTypedSlice(v interface{}) ([]interface{}, bool) + type Body struct + func NewBody() *Body + func (b *Body) Clone() Component + func (b *Body) Delete(key string) error + func (b *Body) Iterate(callback func(key string, value interface{}) error) (errx error) + func (b *Body) Name() string + func (b *Body) Parse(req *retryablehttp.Request) (bool, error) + func (b *Body) Rebuild() (*retryablehttp.Request, error) + func (b *Body) SetValue(key string, value string) error + type Component interface + Clone func() Component + Delete func(key string) error + Iterate func(func(key string, value interface{}) error) error + Name func() string + Parse func(req *retryablehttp.Request) (bool, error) + Rebuild func() (*retryablehttp.Request, error) + SetValue func(key string, value string) error + func New(componentType string) Component + type Cookie struct + func NewCookie() *Cookie + func (c *Cookie) Clone() Component + func (c *Cookie) Delete(key string) error + func (c *Cookie) Iterate(callback func(key string, value interface{}) error) (err error) + func (c *Cookie) Name() string + func (c *Cookie) Parse(req *retryablehttp.Request) (bool, error) + func (c *Cookie) Rebuild() (*retryablehttp.Request, error) + func (c *Cookie) SetValue(key string, value string) error + type Header struct + func NewHeader() *Header + func (q *Header) Clone() Component + func (q *Header) Delete(key string) error + func (q *Header) Iterate(callback func(key string, value interface{}) error) (errx error) + func (q *Header) Name() string + func (q *Header) Parse(req *retryablehttp.Request) (bool, error) + func (q *Header) Rebuild() (*retryablehttp.Request, error) + func (q *Header) SetValue(key string, value string) error + type Path struct + func NewPath() *Path + func (q *Path) Clone() Component + func (q *Path) Delete(key string) error + func (q *Path) Iterate(callback func(key string, value interface{}) error) (err error) + func (q *Path) Name() string + func (q *Path) Parse(req *retryablehttp.Request) (bool, error) + func (q *Path) Rebuild() (*retryablehttp.Request, error) + func (q *Path) SetValue(key string, value string) error + type Query struct + func NewQuery() *Query + func (q *Query) Clone() Component + func (q *Query) Delete(key string) error + func (q *Query) Iterate(callback func(key string, value interface{}) error) (errx error) + func (q *Query) Name() string + func (q *Query) Parse(req *retryablehttp.Request) (bool, error) + func (q *Query) Rebuild() (*retryablehttp.Request, error) + func (q *Query) SetValue(key string, value string) error + type Value struct + func NewValue(data string) *Value + func (v *Value) Clone() *Value + func (v *Value) Delete(key string) bool + func (v *Value) Encode() (string, error) + func (v *Value) Parsed() dataformat.KV + func (v *Value) SetParsed(data dataformat.KV, dataFormat string) + func (v *Value) SetParsedValue(key string, value string) bool + func (v *Value) String() string