Documentation ¶
Index ¶
- Constants
- func AddMultipartFile(req *http.Request, fieldName, fileName string, file io.ReadCloser) error
- func NormalizePath(path string) string
- func SetBinary(req *http.Request, body io.Reader) error
- func ToMultipart(req *http.Request, bodyWriter *multipart.Writer) error
- func ToString(v interface{}) string
Constants ¶
View Source
const ( HeaderContentType = "Content-Type" HeaderContentTypeJSON = "application/json; charset=UTF-8" HeaderContentTypeXML = "application/xml; charset=UTF-8" HeaderContentTypeForm = "application/x-www-form-urlencoded; charset=UTF-8" HeaderContentTypeMultipart = "multipart/form-data" HeaderContentTypeText = "text/plain; charset=UTF-8" HeaderAccept = "Accept" HeaderUserAgent = "User-Agent" HeaderReferer = "Referer" HeaderOrigin = "Origin" HeaderContentEncoding = "Content-Encoding" HeaderContentEncodingGzip = "gzip" HeaderContentEncodingDeflate = "deflate" )
content type
Variables ¶
This section is empty.
Functions ¶
func AddMultipartFile ¶
func NormalizePath ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.