surf: github.com/headzoo/surf Index | Files | Directories

package surf

import "github.com/headzoo/surf"

Package surf ensembles other packages into a usable browser.

Index

Package Files

surf.go

Variables

var (
    // DefaultUserAgent is the global user agent value.
    DefaultUserAgent = agent.Create()

    // DefaultSendReferer is the global value for the AttributeSendReferer attribute.
    DefaultSendReferer = true

    // DefaultMetaRefreshHandling is the global value for the AttributeHandleRefresh attribute.
    DefaultMetaRefreshHandling = true

    // DefaultFollowRedirects is the global value for the AttributeFollowRedirects attribute.
    DefaultFollowRedirects = true

    // DefaultMaxHistoryLength is the global value for max history length.
    DefaultMaxHistoryLength = 0
)

func NewBrowser Uses

func NewBrowser() *browser.Browser

NewBrowser creates and returns a *browser.Browser type.

Directories

PathSynopsis
agentPackage agent generates user agents strings for well known browsers and for custom browsers.
browserPackage browser contains the primary browser implementation.
errorsPackage errors contains error types specific to the Surf library.
jarPackage jar has containers for storing data, such as bookmarks and cookies.
utilPackage util contains some utility methods used by other packages.

Package surf imports 3 packages (graph) and is imported by 29 packages. Updated 2018-09-09. Refresh now. Tools for package owners.