获取返回的Cookies

cookies方法,返回 HTTP 响应的 cookie 内容:

<?php
$httpClient = (new \x\Client)->http();
$res = $httpClient->domain('https://www.sw-x.cn/api.html')
		->body(['name' => 'SW-X'])
		->post();

$cookies = $httpClient->cookies();