Middleware support added. HTML Parsing disable option added.

Goroutine leaks will be tested using leaktest lib.
This commit is contained in:
Musab Gültekin
2019-06-15 17:55:40 +03:00
parent 4799b0f7b4
commit 7b23596a2d
9 changed files with 53 additions and 17 deletions

View File

@ -47,12 +47,18 @@ type Options struct {
// For extracting data
Exporters []Exporter
// Called before requests made to manipulate requests
RequestMiddlewares []RequestMiddleware
// Max body reading size in bytes
MaxBodySize int64
// Charset Detection disable
CharsetDetectDisabled bool
// If true, HTML parsing is disabled to improve performance.
ParseHTMLDisabled bool
// Revisiting same URLs is disabled by default
URLRevisitEnabled bool
}