获取返回的Headers

headers方法,返回 HTTP 响应的头信息:

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

$headers = $httpClient->headers();