Versions in this module Expand all Collapse all v1 v1.0.5 Nov 27, 2022 Changes in this version + func NewFormBody(values, files url.Values) (contentType string, bodyReader io.Reader, err error) + func NewFormBody2(values url.Values, files Files) (contentType string, bodyReader io.Reader) + func NewJSONBody(v interface{}) (contentType string, bodyReader io.Reader, err error) + func NewXMLBody(v interface{}) (contentType string, bodyReader io.Reader, err error) + type File interface + Name func() string + Read func(p []byte) (n int, err error) + func NewFile(name string, bodyReader io.Reader) File + type Files map[string][]File