Documentation
¶
Index ¶
- Constants
- func HttpGet(url string) (resp *http.Response, err error)
- func HttpGetWithCookie(url string, header http.Header, cookies ...*http.Cookie) (resp *http.Response, err error)
- func HttpPost(url string, data url.Values) (resp *http.Response, err error)
- func HttpPostFileChunkWithCookie(url string, fieldName string, fileName string, data url.Values, chunk []byte, ...) (resp *http.Response, err error)
- func HttpPostWithCookie(url string, data url.Values, cookies ...*http.Cookie) (resp *http.Response, err error)
- func HttpPostWithoutRedirect(url string, data url.Values) (resp *http.Response, err error)
- func Init(insecureSkipVerify bool, certFile string) error
- func NewTLSConfig(insecureSkipVerify bool, certFile string) (*tls.Config, error)
Constants ¶
View Source
const (
// HeaderContentType the Content-Type http header
HeaderContentType = "Content-Type"
)
Variables ¶
This section is empty.
Functions ¶
func HttpGetWithCookie ¶
func HttpGetWithCookie(url string, header http.Header, cookies ...*http.Cookie) (resp *http.Response, err error)
HttpGetWithCookie get http resource with cookies
func HttpPostFileChunkWithCookie ¶
func HttpPostFileChunkWithCookie(url string, fieldName string, fileName string, data url.Values, chunk []byte, cookies ...*http.Cookie) (resp *http.Response, err error)
HttpPostFileChunkWithCookie send a post request with form data, a file chunk and cookies
func HttpPostWithCookie ¶
func HttpPostWithCookie(url string, data url.Values, cookies ...*http.Cookie) (resp *http.Response, err error)
HttpPostWithCookie send a post request with form data and cookies
func HttpPostWithoutRedirect ¶
HttpPostWithoutRedirect send a post request with form data and not auto redirect
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.