peernet

package
v0.0.0-...-11790f9 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Listen

func Listen(addr string, handler http.Handler) error

Types

type Peer

type Peer struct {
	// contains filtered or unexported fields
}

func Dial

func Dial(url string, handler http.Handler) (*Peer, error)

func LookupPeer

func LookupPeer(req *http.Request) *Peer

func (*Peer) Close

func (p *Peer) Close() error

func (*Peer) Do

func (p *Peer) Do(req *http.Request) (resp *http.Response, err error)

func (*Peer) Get

func (p *Peer) Get(url string) (resp *http.Response, err error)

func (*Peer) Head

func (p *Peer) Head(url string) (resp *http.Response, err error)

func (*Peer) Post

func (p *Peer) Post(url string, bodyType string, body io.Reader) (resp *http.Response, err error)

func (*Peer) PostForm

func (p *Peer) PostForm(url string, data url.Values) (resp *http.Response, err error)

Jump to

Keyboard shortcuts

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