{"modulePath":"github.com/MG-RAST/AWE","version":"v0.9.12","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package httpclient\n\nthis package contains modified code based on following github repo: [https://github.com/jaredwilkening/httpclient](https://github.com/jaredwilkening/httpclient)\n\nthis package contains modified code based on following github repo: [https://github.com/jaredwilkening/httpclient](https://github.com/jaredwilkening/httpclient)\n\n## Functions\n\n```go\nfunc Delete(url string, header Header, data io.Reader, user *Auth) (resp *http.Response, err error)\n```\n\n```go\nfunc Do(t string, url string, header Header, data io.Reader, user *Auth) (*http.Response, error)\n```\n\n```go\nfunc Get(url string, header Header, data io.Reader, user *Auth) (resp *http.Response, err error)\n```\n\n```go\nfunc Post(url string, header Header, data io.Reader, user *Auth) (resp *http.Response, err error)\n```\n\n```go\nfunc Put(url string, header Header, data io.Reader, user *Auth) (resp *http.Response, err error)\n```\n\n## Types\n\n```go\ntype Auth struct {\n\tType     string\n\tUsername string\n\tPassword string\n\tToken    string\n}\n```\n\n```go\nfunc GetUserByBasicAuth(username, password string) (user *Auth)\n```\n\n```go\nfunc GetUserByTokenAuth(token string) (user *Auth)\n```\nsupport multiple token types with datatoken backwards compatable, if no type given default to OAuth\n\n```go\ntype Form struct {\n\tLength      int64\n\tReader      io.Reader\n\tContentType string\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewForm() (f *Form)\n```\n\n```go\nfunc (f *Form) AddFile(name, path string)\n```\n\n```go\nfunc (f *Form) AddFileReader(name string, r io.Reader, size int64)\n```\n\n```go\nfunc (f *Form) AddParam(key, val string)\n```\n\n```go\nfunc (f *Form) Create() (err error)\n```\n\n```go\nfunc (f *Form) Dump() (buf []byte)\n```\n\n```go\ntype Header http.Header\n```\n\n","path":"github.com/MG-RAST/AWE/lib/httpclient","name":"httpclient","synopsis":"this package contains modified code based on following github repo: https://github.com/jaredwilkening/httpclient this package contains modified code based on following github repo: https://github.com/jaredwilkening/httpclient","isRedistributable":true}
