From 79e4de7434c56bf2605b6f642738af0b23e93a49 Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 8 Apr 2024 03:32:14 +0300 Subject: [PATCH] update readme --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index 13d4019..afbcf9c 100644 --- a/README.md +++ b/README.md @@ -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 This class provides additional features for the raw response operations