Skip to content

Commit d34e229

Browse files
committed
Fixed an indentation issue
1 parent 2215509 commit d34e229

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/http_client.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -371,17 +371,17 @@ To abort a request (e.g. because it didn't complete in due time, or you want to
371371
fetch only the first bytes of the response, etc.), you can either use the
372372
``cancel()`` method of ``ResponseInterface``::
373373

374-
$response->cancel()
374+
$response->cancel()
375375

376376
Or throw an exception from a progress callback::
377377

378-
$response = $client->request('GET', 'https://...', [
378+
$response = $client->request('GET', 'https://...', [
379379
'on_progress' => function (int $dlNow, int $dlSize, array $info): void {
380380
// ...
381381

382382
throw new \MyException();
383383
},
384-
]);
384+
]);
385385

386386
The exception will be wrapped in an instance of ``TransportExceptionInterface``
387387
and will abort the request.

0 commit comments

Comments
 (0)