Middleware support added. HTML Parsing disable option added.
Goroutine leaks will be tested using leaktest lib.
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user