Documentation ¶
Index ¶
- func ToBuffer(url string, callback BufferCallback) error
- func ToFile(url string, filename string) error
- func UploadFile(head api.Request, url string, file string) ([]byte, error)
- type BufferCallback
- type Http
- func (hp *Http) Do(method string, url string, body io.Reader, set SetHeaderFunc) ([]byte, error)
- func (hp *Http) DoBytes(method string, url string, buf []byte) ([]byte, error)
- func (hp *Http) DoString(method string, url string, buf []byte) (string, error)
- func (hp *Http) DoWithHead(method string, url string, buf []byte, set SetHeaderFunc) ([]byte, error)
- func (hp *Http) FileName() string
- func (hp *Http) GetContentType() string
- func (hp *Http) IsFile() bool
- type SetHeaderFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToBuffer ¶
func ToBuffer(url string, callback BufferCallback) error
Types ¶
type BufferCallback ¶
type Http ¶
type Http struct { HttpStatus int ContentDisposition string ContentType string ContentLength int64 }
func (*Http) DoWithHead ¶
func (*Http) GetContentType ¶
type SetHeaderFunc ¶
Click to show internal directories.
Click to hide internal directories.