Documentation ¶
Index ¶
- Constants
- Variables
- type Cookies
- type Filter
- type FrameLoadedListener
- type Interceptor
- func (i *Interceptor) AddFilter(name string, filter *Filter) error
- func (i *Interceptor) AddListener(listener InterceptorListener) events.ListenerID
- func (i *Interceptor) IsRunning() bool
- func (i *Interceptor) RemoveFilter(name string)
- func (i *Interceptor) RemoveListener(id events.ListenerID)
- func (i *Interceptor) Run(ctx context.Context) error
- type InterceptorFilter
- type InterceptorListener
- type Manager
- func (m *Manager) Close() error
- func (m *Manager) DeleteCookies(ctx context.Context, url string, cookies *drivers.HTTPCookies) error
- func (m *Manager) GetCookies(ctx context.Context) (*drivers.HTTPCookies, error)
- func (m *Manager) GetHeaders(_ context.Context) (*drivers.HTTPHeaders, error)
- func (m *Manager) GetResponse(_ context.Context, frameID page.FrameID) (drivers.HTTPResponse, error)
- func (m *Manager) Navigate(ctx context.Context, url values.String) error
- func (m *Manager) NavigateBack(ctx context.Context, skip values.Int) (values.Boolean, error)
- func (m *Manager) NavigateForward(ctx context.Context, skip values.Int) (values.Boolean, error)
- func (m *Manager) OnNavigation(ctx context.Context) (rtEvents.Stream, error)
- func (m *Manager) OnRequest(ctx context.Context) (rtEvents.Stream, error)
- func (m *Manager) OnResponse(ctx context.Context) (rtEvents.Stream, error)
- func (m *Manager) SetCookies(ctx context.Context, url string, cookies *drivers.HTTPCookies) error
- func (m *Manager) SetHeaders(ctx context.Context, headers *drivers.HTTPHeaders) error
- func (m *Manager) WaitForNavigation(ctx context.Context, opts WaitEventOptions) error
- type NavigationEvent
- func (evt *NavigationEvent) Compare(other core.Value) int64
- func (evt *NavigationEvent) Copy() core.Value
- func (evt *NavigationEvent) GetIn(_ context.Context, path []core.Value) (core.Value, core.PathError)
- func (evt *NavigationEvent) Hash() uint64
- func (evt *NavigationEvent) MarshalJSON() ([]byte, error)
- func (evt *NavigationEvent) String() string
- func (evt *NavigationEvent) Type() core.Type
- func (evt *NavigationEvent) Unwrap() interface{}
- type NavigationEventStream
- type Options
- type ResourceFilter
- type WaitEventOptions
Constants ¶
View Source
const BlankPageURL = "about:blank"
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Cookies ¶ added in v0.14.0
type Cookies map[string]*drivers.HTTPCookies
type Filter ¶ added in v0.14.0
type Filter struct {
Patterns []drivers.ResourceFilter
}
type Interceptor ¶ added in v0.16.0
type Interceptor struct {
// contains filtered or unexported fields
}
func NewInterceptor ¶ added in v0.16.0
func NewInterceptor(logger zerolog.Logger, client *cdp.Client) *Interceptor
func (*Interceptor) AddFilter ¶ added in v0.16.0
func (i *Interceptor) AddFilter(name string, filter *Filter) error
func (*Interceptor) AddListener ¶ added in v0.16.0
func (i *Interceptor) AddListener(listener InterceptorListener) events.ListenerID
func (*Interceptor) IsRunning ¶ added in v0.16.0
func (i *Interceptor) IsRunning() bool
func (*Interceptor) RemoveFilter ¶ added in v0.16.0
func (i *Interceptor) RemoveFilter(name string)
func (*Interceptor) RemoveListener ¶ added in v0.16.0
func (i *Interceptor) RemoveListener(id events.ListenerID)
type InterceptorFilter ¶ added in v0.16.0
type InterceptorFilter struct {
// contains filtered or unexported fields
}
func NewInterceptorFilter ¶ added in v0.16.0
func NewInterceptorFilter(filter *Filter) (*InterceptorFilter, error)
func (*InterceptorFilter) Filter ¶ added in v0.16.0
func (f *InterceptorFilter) Filter(rt network.ResourceType, req network.Request) bool
type InterceptorListener ¶ added in v0.16.0
type InterceptorListener func(ctx context.Context, msg *fetch.RequestPausedReply) bool
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) DeleteCookies ¶
func (*Manager) GetCookies ¶
func (*Manager) GetHeaders ¶
func (*Manager) GetResponse ¶
func (*Manager) NavigateBack ¶
func (*Manager) NavigateForward ¶
func (*Manager) OnNavigation ¶ added in v0.16.0
func (*Manager) OnResponse ¶ added in v0.16.0
func (*Manager) SetCookies ¶
func (*Manager) SetHeaders ¶
func (*Manager) WaitForNavigation ¶
func (m *Manager) WaitForNavigation(ctx context.Context, opts WaitEventOptions) error
type NavigationEvent ¶ added in v0.16.0
type NavigationEvent struct {}
func (*NavigationEvent) Compare ¶ added in v0.16.0
func (evt *NavigationEvent) Compare(other core.Value) int64
func (*NavigationEvent) Copy ¶ added in v0.16.0
func (evt *NavigationEvent) Copy() core.Value
func (*NavigationEvent) Hash ¶ added in v0.16.0
func (evt *NavigationEvent) Hash() uint64
func (*NavigationEvent) MarshalJSON ¶ added in v0.16.0
func (evt *NavigationEvent) MarshalJSON() ([]byte, error)
func (*NavigationEvent) String ¶ added in v0.16.0
func (evt *NavigationEvent) String() string
func (*NavigationEvent) Type ¶ added in v0.16.0
func (evt *NavigationEvent) Type() core.Type
func (*NavigationEvent) Unwrap ¶ added in v0.16.0
func (evt *NavigationEvent) Unwrap() interface{}
type NavigationEventStream ¶ added in v0.16.0
type NavigationEventStream struct {
// contains filtered or unexported fields
}
type Options ¶ added in v0.14.0
type Options struct { Cookies Cookies Headers *drivers.HTTPHeaders Filter *Filter }
type ResourceFilter ¶ added in v0.16.0
Click to show internal directories.
Click to hide internal directories.