mirror of
https://github.com/neon-mmd/websurfx.git
synced 2024-11-25 07:28:22 -05:00
✨ feat: define common behaviour for all engines
This commit is contained in:
parent
c223fed394
commit
27247baf0c
@ -53,7 +53,7 @@ pub trait SearchEngine {
|
|||||||
// fetch the html from upstream search engine
|
// fetch the html from upstream search engine
|
||||||
Ok(reqwest::Client::new()
|
Ok(reqwest::Client::new()
|
||||||
.get(url)
|
.get(url)
|
||||||
.timeout(Duration::from_secs(5))
|
.timeout(Duration::from_secs(30))
|
||||||
.headers(header_map) // add spoofed headers to emulate human behaviour
|
.headers(header_map) // add spoofed headers to emulate human behaviour
|
||||||
.send()
|
.send()
|
||||||
.await
|
.await
|
||||||
|
Loading…
Reference in New Issue
Block a user