mysurf

package
v0.0.36 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDownloader

func NewDownloader() download.Downloader

Types

type Downloader

type Downloader struct {
}

Downloader is an implementation of surf using https://github.com/headzoo/surf .

func (*Downloader) Close added in v0.0.19

func (downloader *Downloader) Close() error

func (*Downloader) Get

func (downloader *Downloader) Get(url string, fnModifyRequest func(req *http.Request) error) ([]byte, int, error)

Get retrieves the url content based on the given user agent

Jump to

Keyboard shortcuts

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