mirror of
https://github.com/YGGverse/yggverse.github.io.git
synced 2026-04-01 09:35:38 +00:00
refactor project tree
This commit is contained in:
parent
fd8d5ddf96
commit
f4199191b5
14 changed files with 43 additions and 23 deletions
35
gemini/gemini-php/0.7.0.gmi
Normal file
35
gemini/gemini-php/0.7.0.gmi
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
# gemini-php 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
|
||||
|
||||
=> https://github.com/YGGverse/Yo/tree/gemini
|
||||
|
||||
## Example
|
||||
|
||||
``` php
|
||||
$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
|
||||
|
||||
``` php
|
||||
$request->setResolvedHost(
|
||||
'68.133.1.71'
|
||||
)
|
||||
```
|
||||
|
||||
## Links
|
||||
|
||||
=> https://github.com/YGGverse/gemini-php/releases/tag/0.7.0 Download gemini-php 0.7.0
|
||||
=> https://github.com/YGGverse/net-php Network Resolver in PHP 8
|
||||
Loading…
Add table
Add a link
Reference in a new issue