Documentation ¶
Index ¶
- func GetHostPort(url string) (string, int)
- type HTTPExecuter
- func (e *HTTPExecuter) ExecGetRequest(path string, headers map[string]string) (resp *http.Response, err error)
- func (e *HTTPExecuter) ExecRequestWithCookies(method string, path string, body io.Reader, headers map[string]string, ...) (resp *http.Response, err error)
- func (e *HTTPExecuter) LogError(resp *http.Response, callType string) (err error)
- func (e *HTTPExecuter) ReadRespBody(resp *http.Response) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHostPort ¶
Types ¶
type HTTPExecuter ¶
type HTTPExecuter struct { AuthType string // contains filtered or unexported fields }
func New ¶
func New(oauthHost string, oauthPath string, clientId string, clientSecret string, userId string, password string, host string, scheme string, port int, showLogs bool) *HTTPExecuter
New returns an initialised HTTPExecuter instance.
func (*HTTPExecuter) ExecGetRequest ¶
func (*HTTPExecuter) ExecRequestWithCookies ¶
func (*HTTPExecuter) LogError ¶
func (e *HTTPExecuter) LogError(resp *http.Response, callType string) (err error)
func (*HTTPExecuter) ReadRespBody ¶
func (e *HTTPExecuter) ReadRespBody(resp *http.Response) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.