Skip to content

Commit 326f34c

Browse files
committed
docs: fix $client->request() HTTP verbs
1 parent 7f0ae5c commit 326f34c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22

3-
$client->setBody($body)->request('put', 'http://example.com');
3+
$client->setBody($body)->request('PUT', 'http://example.com');
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22

3-
$client->request('put', 'http://example.com', ['body' => $body]);
3+
$client->request('PUT', 'http://example.com', ['body' => $body]);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22

3-
$client->request('get', '/', ['cert' => ['/path/server.pem', 'password']]);
3+
$client->request('GET', '/', ['cert' => ['/path/server.pem', 'password']]);

user_guide_src/source/libraries/curlrequest/025.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
$client->request('get', '/', [
3+
$client->request('GET', '/', [
44
'headers' => [
55
'User-Agent' => 'testing/1.0',
66
'Accept' => 'application/json',

0 commit comments

Comments
 (0)