Documentation ¶
Index ¶
Constants ¶
View Source
const ( HTTPGet = "GET" HTTPPost = "POST" HTTPDelete = "DELETE" HTTPPut = "PUT" HeaderContentType = "Content-Type" HeaderAuthentication = "Authentication" HeaderSignature = "Signature" HeaderTimestamp = "Timestamp" ContentTypeJSON = "application/json" ContentTypeForm = "application/x-www-form-urlencoded; param=value" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Authentication ¶
type RestClient ¶
type RestClient struct {
// contains filtered or unexported fields
}
func NewRestClientWithAuthentication ¶
func NewRestClientWithAuthentication(auth *Authentication) *RestClient
func NewRestClientWithBasicAuth ¶
func NewRestClientWithBasicAuth(user, password string) *RestClient
func (*RestClient) SetHeader ¶
func (c *RestClient) SetHeader(key, value string)
Click to show internal directories.
Click to hide internal directories.