Documentation
¶
Index ¶
- Variables
- func ForceClose(c io.Closer)
- func NewClient() *http.Client
- func NewTransport() (t *http.Transport)
- func ShouldBeRegularFile(info os.FileInfo, err error) error
- func ToString(value interface{}) string
- func WriteFormDataFromFileHeader(key string, p *multipart.FileHeader, w *multipart.Writer) error
- func WriteFormDataFromFilePath(key, p string, w *multipart.Writer) error
- func WriteFormDataFromReader(key, name string, w *multipart.Writer, src io.Reader) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Client = NewClient()
The default HTTP client instance.
Functions ¶
func ForceClose ¶
ForceClose force close the given io.Closer ignore error.
func NewTransport ¶
NewTransport returns a new *http.Transport instance.
func ShouldBeRegularFile ¶
ShouldBeRegularFile determines whether the given target is a regular file.
func ToString ¶
func ToString(value interface{}) string
ToString converts the given parameter to a string.
func WriteFormDataFromFileHeader ¶
WriteFormDataFromFileHeader writes the downstream uploaded file to upload writer.
func WriteFormDataFromFilePath ¶
WriteFormDataFromFilePath writes the contents of a given file to upload writer.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.