Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicRequestConfig ¶
BasicRequestConfig A standard implementation for configuring request headers
func (BasicRequestConfig) GetUserAgent ¶
func (b BasicRequestConfig) GetUserAgent() string
GetUserAgent Get the string for the user agent header string
type RequestConfig ¶
type RequestConfig interface {
GetUserAgent() string
}
RequestConfig An interface for handling the configuration request headers
type RequestDecorator ¶
type RequestDecorator struct {
// contains filtered or unexported fields
}
RequestDecorator An object for updating the headers of a request
func New ¶
func New(config *RequestConfig, authorizer *requestauthorizer.RequestAuthorizer) *RequestDecorator
New Initialize a new request decorator object
func (*RequestDecorator) UpdateHeaders ¶
func (rd *RequestDecorator) UpdateHeaders(req *http.Request, contentType string)
UpdateHeaders Adds user agent and content type headers to a request
Click to show internal directories.
Click to hide internal directories.