docserver

package
v0.9.36 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2015 License: GPL-3.0, LGPL-2.1-or-later Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocServer

type DocServer struct {
	*http.Transport
	DocRoot string
	// contains filtered or unexported fields
}

func New

func New(docRoot string) (self *DocServer)

func (*DocServer) Client

func (self *DocServer) Client() *http.Client

func (*DocServer) Get added in v0.9.36

func (self *DocServer) Get(uri, path string) (content []byte, err 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 (*DocServer) GetAuthContent

func (self *DocServer) GetAuthContent(uri string, hash common.Hash) (content []byte, err error)

func (*DocServer) HasScheme added in v0.9.36

func (self *DocServer) HasScheme(scheme string) bool

func (*DocServer) RegisterScheme added in v0.9.36

func (self *DocServer) RegisterScheme(scheme string, rt http.RoundTripper)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL