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
final class AsyncPsr18Browser implements HttpClient
284
-
{
285
-
public function __construct(
286
-
private Browser $browser
287
-
){
288
-
}
279
+
*(There currently is no official fiber based PSR-18 implementation of either AMP or ReactPHP. Therefore, [a small bridge can be used intermediately](https://github.com/veewee/psr18-react-browser))*
289
280
290
-
public function sendRequest(RequestInterface $request): ResponseInterface
291
-
{
292
-
return await(
293
-
$this->browser->request(
294
-
$request->getMethod(),
295
-
(string) $request->getUri(),
296
-
$request->getHeaders(),
297
-
(string) $request->getBody()
298
-
)
299
-
);
300
-
}
301
-
}
302
-
```
303
281
304
282
Usage:
305
283
@@ -312,12 +290,12 @@ use Soap\ExtSoapEngine\Wsdl\TemporaryWsdlLoaderProvider;
312
290
use Soap\Psr18Transport\Psr18Transport;
313
291
use Soap\Psr18Transport\Wsdl\Psr18Loader;
314
292
use Soap\Wsdl\Loader\FlatteningLoader;
293
+
use Veewee\Psr18ReactBrowser\Psr18ReactBrowserClient;
0 commit comments