requests

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	Method         string
	Url            string
	RequestId      string
	NetworkId      string
	CrawlLog       *logV1.CrawlLog
	GotNew         bool
	GotComplete    bool
	Initiator      string
	ResourceType   string
	Referrer       string
	RedirectParent *Request
	FromCache      bool
	// contains filtered or unexported fields
}

type RequestRegistry

type RequestRegistry interface {
	NotifyLoadStart()
	NotifyLoadFinished()
	AddRequest(req *Request)
	GetByNetworkId(id string) *Request
	GetByRequestId(id string) *Request
	GetByUrl(url string, onlyNew bool) *Request
	MatchCrawlLogs() bool
	Walk(w func(*Request))
	InitialRequest() *Request
	RootRequest() *Request
	FinalizeResponses(requestedUrl *frontier.QueuedUri)
}

func NewRegistry

func NewRegistry(done *syncx.WaitGroup) RequestRegistry

Jump to

Keyboard shortcuts

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