Documentation
¶
Index ¶
- Constants
- func NewBody(bodyType ...BodyType) http.Body
- type BodyImpl
- func (r *BodyImpl) Build() (http.Reader, error)
- func (r *BodyImpl) GetField(key string) any
- func (r *BodyImpl) SetField(key string, value any) http.Body
- func (r *BodyImpl) SetFields(fields map[string]any) http.Body
- func (r *BodyImpl) SetFile(fieldName, filePath string) http.Body
- func (r *BodyImpl) SetFiles(files map[string]string) http.Body
- type BodyType
Constants ¶
View Source
const ( ContentTypeJSON = "application/json" ContentTypeFormURLEncoded = "application/x-www-form-urlencoded" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.