Versions in this module Expand all Collapse all v0 v0.1.10 Nov 20, 2021 Changes in this version + const HeaderContentType + const MIMEHTML + const MIMEJSON + const MIMEMultipartPOSTFORM + const MIMEPOSTFORM + const MIMETEXT + const MIMETEXTXML + const MIMEXML + func NewErr(e error) *errBody + type Body interface + Body func() (io.Reader, error) + ContentType func() string + type File struct + Content []byte + ContentType string + Field string + Filename string + type Form struct + func NewForm(u url.Values) *Form + func NewFormFromMap(m map[string]interface{}) *Form + func (f *Form) Add(key string, value interface{}) *Form + func (f *Form) Body() (io.Reader, error) + func (f *Form) ContentType() string + func (f *Form) Del(key string) *Form + func (f *Form) Encode() string + func (f *Form) Set(key string, value interface{}) *Form + type JSON struct + func NewJSON(v interface{}) *JSON + func (j *JSON) Body() (io.Reader, error) + func (j *JSON) Bytes() ([]byte, error) + func (j *JSON) ContentType() string + type MultipartForm struct + func NewMultipartForm(uv url.Values, fs ...File) *MultipartForm + func NewMultipartFormFromMap(m map[string]interface{}, fs ...File) *MultipartForm + func (mf *MultipartForm) Body() (io.Reader, error) + func (mf *MultipartForm) ContentType() string + func (mf *MultipartForm) CreateFormFile(w *multipart.Writer, fieldName, filename string, contentType string, ...) (int, error) + type XML struct + func NewXML(v interface{}) *XML + func (x *XML) Body() (io.Reader, error) + func (x *XML) Bytes() ([]byte, error) + func (x *XML) ContentType() string