8000 make a basic request · symfony/symfony-docs@6997c4f · GitHub
[go: up one dir, main page]

Skip to content

Commit 6997c4f

Browse files
yamikojaviereguiluz
yamiko
authored andcommitted
make a basic request
1 parent b3d9eb3 commit 6997c4f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

components/browser_kit/introduction.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@ Usage
2626
Making Request
2727
~~~~~~~~~~~~~~
2828

29+
To make a request you use the client's request method.
30+
The first two arguments are for the HTTP method and the request url.
31+
32+
.. code-block:: php
33+
34+
use ACME\Client;
35+
36+
$client = new Client();
37+
$response = $client->request('GET', 'http://symfony.com');
38+
2939
Clicking Links
3040
~~~~~~~~~~~~~~
3141

0 commit comments

Comments
 (0)
0