Documentation ¶
Overview ¶
Package http defines simple http based storage operation
Index ¶
- Constants
- func CloseIdleConnections(client interface{})
- func HeaderTime(header http.Header, key string, defaultValue time.Time) time.Time
- func IsStatusOK(response *http.Response) bool
- func New(options ...storage.Option) storage.Manager
- func ParseHTTPDate(value string) (result time.Time, err error)
- func Provider(options ...storage.Option) (storage.Manager, error)
- type ClientProvider
Constants ¶
View Source
const Scheme = "http"
Scheme represents http url scheme
View Source
const SecureScheme = "https"
SecureScheme represents secure http url scheme
Variables ¶
This section is empty.
Functions ¶
func CloseIdleConnections ¶
func CloseIdleConnections(client interface{})
CloseIdleConnections closes iddle connections
func HeaderTime ¶
HeaderTime returns time for header key
func IsStatusOK ¶
IsStatusOK returns true if status is 2xxx
func ParseHTTPDate ¶
ParseHTTPDate parses date assigned
Types ¶
Click to show internal directories.
Click to hide internal directories.