You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.. note:: When ``$shareOptions`` is false, the default options passed to the class constructor will be used for all requests. Other options will be reset after sending a request.
57
+
41
58
When creating the class manually, you need to pass a few dependencies in. The first parameter is an
42
59
instance of the ``Config\App`` class. The second parameter is a URI instance. The third
43
-
parameter is a Response object. The fourth parameter is the optional ``$options`` array::
60
+
parameter is a Response object. The fourth parameter is the optional default ``$options`` array::
44
61
45
62
$client = new \CodeIgniter\HTTP\CURLRequest(
46
63
new \Config\App(),
@@ -70,6 +87,8 @@ a Response instance to you. This takes the HTTP method, the url and an array of
70
87
'auth' => ['user', 'pass'],
71
88
]);
72
89
90
+
.. note:: When ``$shareOptions`` is false, the options passed to the method will be used for the request. After sending the request, they will be cleared. If you want to use the options to all requests, pass the options in the constructor.
91
+
73
92
Since the response is an instance of ``CodeIgniter\HTTP\Response`` you have all of the normal information
0 commit comments