Documentation
¶
Index ¶
- type DebugAuthTransport
- func (t *DebugAuthTransport) Client() *http.Client
- func (t *DebugAuthTransport) RoundTrip(req *http.Request) (*http.Response, error)
- func (t *DebugAuthTransport) SetCredentails(username string, password string)
- func (t *DebugAuthTransport) SetDebug(debug bool)
- func (t *DebugAuthTransport) SetToken(token string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DebugAuthTransport ¶
type DebugAuthTransport struct { Username string Password string Token string Debug bool Transport http.RoundTripper }
func (*DebugAuthTransport) Client ¶
func (t *DebugAuthTransport) Client() *http.Client
Returns http client with transport
func (*DebugAuthTransport) SetCredentails ¶
func (t *DebugAuthTransport) SetCredentails(username string, password string)
SetCredentails - Set username/password for basic authentication
func (*DebugAuthTransport) SetDebug ¶
func (t *DebugAuthTransport) SetDebug(debug bool)
SetDebug - Enable debug output
func (*DebugAuthTransport) SetToken ¶
func (t *DebugAuthTransport) SetToken(token string)
SetToken - Set Authorization header in request.
Click to show internal directories.
Click to hide internal directories.