Documentation ¶
Index ¶
- type HTTPClient
- func (self *HTTPClient) Client() *http.Client
- func (self *HTTPClient) Get(uri, path string) ([]byte, error)
- func (self *HTTPClient) GetAuthContent(uri string, hash common.Hash) ([]byte, error)
- func (self *HTTPClient) HasScheme(scheme string) bool
- func (self *HTTPClient) RegisterScheme(scheme string, rt http.RoundTripper)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPClient ¶
func New ¶
func New(docRoot string) (self *HTTPClient)
func (*HTTPClient) Client ¶
func (self *HTTPClient) Client() *http.Client
func (*HTTPClient) Get ¶
func (self *HTTPClient) Get(uri, path string) ([]byte, error)
Get(uri, path) downloads the document at uri, if path is non-empty it is interpreted as a filepath to which the contents are saved
func (*HTTPClient) GetAuthContent ¶
func (*HTTPClient) HasScheme ¶
func (self *HTTPClient) HasScheme(scheme string) bool
func (*HTTPClient) RegisterScheme ¶
func (self *HTTPClient) RegisterScheme(scheme string, rt http.RoundTripper)
Click to show internal directories.
Click to hide internal directories.