Documentation ¶
Overview ¶
Package httputil implements common HTTP functionality used throughout the Clair codebase.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClientAddr ¶
GetClientAddr returns the first value in X-Forwarded-For if it exists otherwise fall back to use RemoteAddr
func GetWithUserAgent ¶
GetWithUserAgent performs an HTTP GET with the proper Clair User-Agent.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.