Skip to content

Commit edcef8f

Browse files
committed
refactor(http): remove built-in client
1 parent 48d5a75 commit edcef8f

39 files changed

Lines changed: 55 additions & 6927 deletions

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
1-
# Ripple Kernel
1+
# ripple-kernel
22

33
PHP User state coroutine standard model
44

5-
### Install
5+
### install
66

77
```bash
88
composer require cloudtay/ripple-kernel
99
```
1010

11-
### License
12-
13-
MIT License
14-
1511
### Author
1612

1713
cclilshy <jingnigg@gmail.com>

composer.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,15 @@
2525
],
2626
"require": {
2727
"php": ">=8.1",
28-
"ext-brotli": "*",
2928
"ext-posix": "*",
3029
"ext-pcntl": "*",
3130
"ext-sockets": "*",
3231
"ext-zlib": "*",
33-
"psr/http-message": "*",
34-
"psr/http-client": "^1.0",
32+
"psr/http-message": "*"
3533
},
3634
"require-dev": {
3735
"phpunit/phpunit": "^9.6",
3836
"friendsofphp/php-cs-fixer": "^3.87",
39-
"guzzlehttp/guzzle": "^7.0"
37+
"guzzlehttp/guzzle": "^7.10"
4038
}
4139
}

examples/12-http-client-request.php

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/Net/Http.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
namespace Ripple\Net;
1414

15-
use Ripple\Net\Http\Client\Client;
1615
use Ripple\Net\Http\Server;
1716
use Ripple\Stream\Exception\ConnectionException;
1817
use Throwable;
@@ -37,13 +36,4 @@ public static function server(string $address, mixed $steamContext = null): Serv
3736
throw new RuntimeException($e->getMessage(), $e->getCode(), $e);
3837
}
3938
}
40-
41-
/**
42-
* @param array $config
43-
* @return Client
44-
*/
45-
public static function client(array $config = []): Client
46-
{
47-
return new Client($config);
48-
}
4939
}

src/Net/Http/Client/Body/AppendStream.php

Lines changed: 0 additions & 207 deletions
This file was deleted.

0 commit comments

Comments
 (0)