Documentation
¶
Overview ¶
Package fetcher provides HTTP content fetching and processing functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FetchRequest ¶
FetchRequest holds the parameters for a fetch request
type HTTPFetcher ¶
type HTTPFetcher struct {
// contains filtered or unexported fields
}
HTTPFetcher handles HTTP requests and content retrieval
func NewHTTPFetcher ¶
func NewHTTPFetcher( httpClient *http.Client, robotsChecker *robots.Checker, contentProcessor *processor.ContentProcessor, userAgent string, ) *HTTPFetcher
NewHTTPFetcher creates a new HTTP fetcher instance
func (*HTTPFetcher) FetchURL ¶
func (f *HTTPFetcher) FetchURL(req *FetchRequest) (string, error)
FetchURL retrieves and processes content from the specified URL
Click to show internal directories.
Click to hide internal directories.