Documentation ¶
Index ¶
- func SetupClient(c http.CookieJar, keepalive, timeout time.Duration, proxy string, ...) error
- func UploadFile(s string, fp *os.File) error
- func UploadHandlerFunc(root, temp, filename string, w http.ResponseWriter, r *http.Request, ...) error
- type FileChunk
- type Request
- type Response
- func Do(req *Request) (*Response, error)
- func Get(url string) (*Response, error)
- func Post(url string, contentType string, body io.Reader) (*Response, error)
- func PostForm(url string, data url.Values) (resp *Response, err error)
- func PostJSON(url string, o interface{}) (resp *Response, err error)
- func PostXML(url string, o interface{}) (resp *Response, err error)
- func PostYAML(url string, o interface{}) (resp *Response, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupClient ¶
func UploadHandlerFunc ¶
Types ¶
type FileChunk ¶
type FileChunk struct { RefFile string TotalChunks uint TotalMD5 string TotalSize uint64 ChunkNum uint ChunkSize uint64 ChunkMD5 string // contains filtered or unexported fields }
func ParseChunk ¶
Click to show internal directories.
Click to hide internal directories.