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
to the [`Browser`](https://github.com/clue/reactphp-buzz#browser) instance:
70
+
71
+
```php
72
+
$connector = new \React\Socket\Connector($loop, array(
73
+
'dns' => '127.0.0.1',
74
+
'tcp' => array(
75
+
'bindto' => '192.168.10.1:0'
76
+
),
77
+
'tls' => array(
78
+
'verify_peer' => false,
79
+
'verify_peer_name' => false
80
+
)
81
+
));
82
+
83
+
$browser = new Browser($loop, $connector);
84
+
$client = new Client($browser);
85
+
```
68
86
69
87
#### Promises
70
88
@@ -76,21 +94,27 @@ Sending requests uses a [Promise](https://github.com/reactphp/promise)-based int
76
94
77
95
#### search()
78
96
79
-
The `search($query, $filters = array())` method can be used to search packages matching the given query string and optionally matching the given filter parameter.
80
-
It resolves with an array containing zero or more `Package` objects.
97
+
The `search(string $query, array $filters = array()): PromiseInterface<Package[],Exception>` method can be used to
98
+
search packages matching the given query string and optionally matching the given filter parameter.
99
+
100
+
It resolves with an array containing zero or more [`Package`](#package) objects
101
+
on success or rejects with an `Exception` on error.
0 commit comments