Documentation
¶
Overview ¶
Package http provides functions for interacting with a HTTP server.
Index ¶
Constants ¶
View Source
const ( DefaultPortHTTP = 80 DefaultPortHTTPS = 443 )
Variables ¶
This section is empty.
Functions ¶
func Fetch ¶
func Fetch(uri string, options ...ClientOption) (io.ReadCloser, error)
Fetch returns a Reader for an object for given HTTP address. Fetch returns the Reader and error, if any.
Fetch returns an error if the address cannot be reached, the userinfo cannot be parsed, the user and password are invalid, or the file cannot be retrieved.
Types ¶
type ClientOption ¶
Click to show internal directories.
Click to hide internal directories.