Skip to content

HijackRouter 注释说明有冲突 #926

@xujinzheng

Description

@xujinzheng

见字体加粗部分

https://github.com/go-rod/rod/blob/main/hijack.go#L114
// You can add new handler even after the "Run" is called.
func (r *HijackRouter) Add(pattern string, resourceType proto.NetworkResourceType, handler func(*Hijack)) error {}

https://github.com/go-rod/rod/blob/main/hijack.go#L184
// Run the router, after you call it, you shouldn't add new handler to it.
func (r *HijackRouter) Run() {
r.run()
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    docImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions