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
Required credentials are a *Certificate Authority Certificate*, a *Client Certificate* and the password that is used to decrypt the Client Certificate that get provided to the class constructor as arguments.
256
256
257
257
```{php}
258
-
use BasicHttpClient\Request\Authentication\ClientCertificateAuthentication;
259
-
use JsonHttpClient\Request\JsonRequest;
258
+
use Markenwerk\BasicHttpClient\Request\Authentication\ClientCertificateAuthentication;
259
+
use Markenwerk\JsonHttpClient\Request\JsonRequest;
260
260
261
261
// Configuring the authentication
262
262
$clientCertificateAuthentication = new ClientCertificateAuthentication(
If using the `JsonHttpClient` the response object is returned by the termination methods listed above. If directly using the JsonRequest instance, you can get the JsonResponse object via a getter.
280
280
281
281
```{php}
282
-
// Getting the response BasicHttpClient\Response\JsonResponse object
282
+
// Getting the response Markenwerk\BasicHttpClient\Response\JsonResponse object
283
283
$response = $request->getResponse();
284
284
285
285
// Reading the HTTP status code as integer; will return `200`
// Reading the redirection URL if the server responds with an redirect HTTP header and
@@ -360,13 +360,13 @@ You can find more information about [PHP Common Exceptions at Github](https://gi
360
360
361
361
In general you should expect that any setter method could thrown an `\InvalidArgumentException`. The following exceptions could get thrown while using PHP Basic HTTP Client.
362
362
363
-
-`CommonException\IoException\FileNotFoundException` on configuring a `ClientCertificateAuthentication`instance
364
-
-`CommonException\IoException\FileReadableException` on configuring a `ClientCertificateAuthentication`instance
365
-
-`BasicHttpClient\Exception\HttpRequestAuthenticationException` on performing a request
366
-
-`BasicHttpClient\Exception\HttpRequestException` on performing a request
367
-
-`CommonException\NetworkException\ConnectionTimeoutException` on performing a request
368
-
-`CommonException\NetworkException\CurlException` on performing a request
369
-
-`BasicHttpClient\Exception\HttpResponseException` if parsing the JSON response body fails
363
+
-`Markenwerk\CommonException\IoException\FileNotFoundException` on configuring a `ClientCertificateAuthentication`instance
364
+
-`Markenwerk\CommonException\IoException\FileReadableException` on configuring a `ClientCertificateAuthentication`instance
365
+
-`Markenwerk\BasicHttpClient\Exception\HttpRequestAuthenticationException` on performing a request
366
+
-`Markenwerk\BasicHttpClient\Exception\HttpRequestException` on performing a request
367
+
-`Markenwerk\CommonException\NetworkException\ConnectionTimeoutException` on performing a request
368
+
-`Markenwerk\CommonException\NetworkException\CurlException` on performing a request
369
+
-`Markenwerk\BasicHttpClient\Exception\HttpResponseException` if parsing the JSON response body fails
0 commit comments