0.7.0
Client::Request
method now supports resolved host as optional argument!
This feature useful to
- reduce traffic usage
- increase page loading time by DNS results cache in memory
- alternative networks resolvers, isolated of system
Update dedicated to the Yo! crawler project
Example
$request = new \Yggverse\Gemini\Client\Request(
'gemini://yggverse.cities.yesterweb.org:1965/index.gmi' // target URL
'68.133.1.71' // resolved IP, skip to use system-wide resolver
);
Alternatively, use setResolvedHost
method of Request
object before getResponse
$request->setResolvedHost(
'68.133.1.71'
)
Links
Full Changelog: 0.6.0...0.7.0