1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-01-24 03:49:29 +02:00
ferret/pkg/drivers/params.go
Roman 08e9054ba4
setting Input charset (#609)
* feat(driver): add Charset param

* feat(driver): add convert to UTF8 by input charset
2021-04-08 18:35:29 -04:00

46 lines
689 B
Go

package drivers
type (
ResourceFilter struct {
URL string
Type string
}
StatusCodeFilter struct {
URL string
Code int
}
Ignore struct {
Resources []ResourceFilter
StatusCodes []StatusCodeFilter
}
Viewport struct {
Height int
Width int
ScaleFactor float64
Mobile bool
Landscape bool
}
Params struct {
URL string
UserAgent string
KeepCookies bool
Cookies *HTTPCookies
Headers *HTTPHeaders
Viewport *Viewport
Charset string
Ignore *Ignore
}
ParseParams struct {
Content []byte
KeepCookies bool
Cookies *HTTPCookies
Headers *HTTPHeaders
Viewport *Viewport
}
)