Documentation ¶
Overview ¶
Package handler provides methods to access resources over HTTP(s)
Index ¶
Constants ¶
View Source
const ( NONE = "None" BASIC = "Basic" DIGEST = "Digest" )
Allowed auth method types
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPAuthConfig ¶
type HTTPAuthConfig struct { AuthMethod types.TrimmedString Username types.TrimmedString Password types.TrimmedString }
HTTPAuthConfig defines the attributes used to perform authentication over HTTP
type IHTTPHandler ¶
type IHTTPHandler interface { Download(log log.T, fileSystem filemanager.FileSystem, downloadPath string) (string, error) Validate() (bool, error) }
IHTTPHandler defines methods to interact with HTTP resources
func NewHTTPHandler ¶
func NewHTTPHandler( client http.Client, url url.URL, allowInsecureDownload bool, authConfig HTTPAuthConfig, bridge ssmparameterresolver.ISsmParameterResolverBridge, ) IHTTPHandler
NewHTTPHandler creates a new http handler object
Click to show internal directories.
Click to hide internal directories.