Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
HttpClientRequest | n/a |
0 / 0 |
n/a |
0 / 0 |
1 | n/a |
0 / 0 |
|||
__construct | n/a |
0 / 0 |
n/a |
0 / 0 |
1 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace PeServer\Core\Http\Client; |
6 | |
7 | use PeServer\Core\Http\Client\HttpClientContentBase; |
8 | use PeServer\Core\Http\HttpHeader; |
9 | use PeServer\Core\Http\HttpMethod; |
10 | use PeServer\Core\Web\Url; |
11 | |
12 | readonly class HttpClientRequest |
13 | { |
14 | /** |
15 | * 生成。 |
16 | * |
17 | * @param Url $url |
18 | * @param HttpMethod $method |
19 | * @param null|HttpHeader $header |
20 | * @param null|HttpClientContentBase $content |
21 | * @codeCoverageIgnore |
22 | */ |
23 | public function __construct( |
24 | public Url $url, |
25 | public HttpMethod $method, |
26 | public ?HttpHeader $header, |
27 | public ?HttpClientContentBase $content |
28 | ) { |
29 | } |
30 | } |