Documentation
¶
Index ¶
- Constants
- type Multipart
- func (r *Multipart) Bool(fieldName string, value bool) *Multipart
- func (r *Multipart) Err() error
- func (r *Multipart) File(key, filename string, content io.Reader) *Multipart
- func (r *Multipart) Float(fieldName string, value float64) *Multipart
- func (r *Multipart) Header(key, value string) *Multipart
- func (r *Multipart) Param(key, value string) *Multipart
- func (r *Multipart) Send() (*http.Response, error)
- type Request
- func (r *Request) Body(body io.ReadCloser) *Request
- func (r *Request) Bool(fieldName string, value bool) *Request
- func (r *Request) Bytes(body []byte) *Request
- func (r *Request) Err() error
- func (r *Request) Float(fieldName string, value float64) *Request
- func (r *Request) Header(key, value string) *Request
- func (r *Request) JSON(body any) *Request
- func (r *Request) Param(key, value string) *Request
- func (r *Request) Send() (*http.Response, error)
Constants ¶
View Source
const ( ApplicationJSON = "application/json" ContentType = "Content-Type" ContentLength = "Content-Length" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Multipart ¶
type Multipart struct {
// contains filtered or unexported fields
}
func NewMultipart ¶
Click to show internal directories.
Click to hide internal directories.