Documentation ¶
Index ¶
- Variables
- func Http(httpMethod string, baseURL string, getParams map[string]string, ...) (resp *http.Response, err error)
- func HttpDelete(baseURL string, getParams map[string]string, httpHeaders map[string]string) (body string, err error)
- func HttpGet(baseURL string, getParams map[string]string, httpHeaders map[string]string) (body string, err error)
- func HttpPost(baseURL string, getParams map[string]string, httpHeaders map[string]string) (body string, err error)
- func HttpPut(baseURL string, getParams map[string]string, httpHeaders map[string]string) (body string, err error)
- func LinkExists(uri string) bool
- func UrlRedirectTo(uri string) string
- type HTTPRequest
- func (httpRequest *HTTPRequest) Delete() (body string, err error)
- func (httpRequest *HTTPRequest) Get() (body string, err error)
- func (httpRequest *HTTPRequest) GetBytes() (body []byte, err error)
- func (httpRequest *HTTPRequest) Head() (*http.Response, error)
- func (httpRequest *HTTPRequest) Http(httpMethod string) (resp *http.Response, err error)
- func (httpRequest *HTTPRequest) Options() (*http.Response, error)
- func (httpRequest *HTTPRequest) Patch() (body string, err error)
- func (httpRequest *HTTPRequest) Post() (body string, err error)
- func (httpRequest *HTTPRequest) Put() (body string, err error)
- func (httpRequest *HTTPRequest) Response() (*http.Response, error)
- type HTTPSpec
Constants ¶
This section is empty.
Variables ¶
View Source
var (
SkipSSLVerify bool
)
Functions ¶
func HttpDelete ¶
func LinkExists ¶
func UrlRedirectTo ¶
Types ¶
type HTTPRequest ¶
type HTTPRequest struct { Protocol string Method string Url string GetParams map[string]string HTTPHeaders map[string]string Body *bytes.Buffer }
func (*HTTPRequest) Delete ¶
func (httpRequest *HTTPRequest) Delete() (body string, err error)
func (*HTTPRequest) Get ¶
func (httpRequest *HTTPRequest) Get() (body string, err error)
func (*HTTPRequest) GetBytes ¶
func (httpRequest *HTTPRequest) GetBytes() (body []byte, err error)
func (*HTTPRequest) Http ¶
func (httpRequest *HTTPRequest) Http(httpMethod string) (resp *http.Response, err error)
func (*HTTPRequest) Patch ¶
func (httpRequest *HTTPRequest) Patch() (body string, err error)
func (*HTTPRequest) Post ¶
func (httpRequest *HTTPRequest) Post() (body string, err error)
func (*HTTPRequest) Put ¶
func (httpRequest *HTTPRequest) Put() (body string, err error)
Click to show internal directories.
Click to hide internal directories.