Documentation ¶
Index ¶
Constants ¶
View Source
const ( UserAgentLocal = "<local>" AddrLocal = "0.0.0.0:0" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Fetcher ¶
type Fetcher interface { GetLocalHandler() http.Handler GetFetchFunctionCallback() v8go.FunctionCallback }
func NewFetcher ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithAddrLocal ¶
func WithLocalHandler ¶
func WithUserAgentProvider ¶
func WithUserAgentProvider(provider UserAgentProvider) Option
type UserAgentProvider ¶
type UserAgentProviderFunc ¶
func (UserAgentProviderFunc) GetUserAgent ¶
func (f UserAgentProviderFunc) GetUserAgent(u *url.URL) string
Click to show internal directories.
Click to hide internal directories.