|
|
@ -65,6 +65,27 @@ var_dump( |
|
|
|
); |
|
|
|
); |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### Request::getOptions |
|
|
|
|
|
|
|
#### Request::setOptions |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
``` php |
|
|
|
|
|
|
|
$request = new \Yggverse\Gemini\Client\Request( |
|
|
|
|
|
|
|
'gemini://yggverse.cities.yesterweb.org', |
|
|
|
|
|
|
|
'68.133.1.71' // make direct request to the resolved host |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$request->setOptions( |
|
|
|
|
|
|
|
[ |
|
|
|
|
|
|
|
'ssl' => |
|
|
|
|
|
|
|
[ |
|
|
|
|
|
|
|
'peer_name' => 'yggverse.cities.yesterweb.org', // SNI |
|
|
|
|
|
|
|
'verify_peer' => false, |
|
|
|
|
|
|
|
'verify_peer_name' => false |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
### Response |
|
|
|
### Response |
|
|
|
|
|
|
|
|
|
|
|
This class provides additional features for the raw response operations |
|
|
|
This class provides additional features for the raw response operations |
|
|
|