Skip to content

Commit fce7ac8

Browse files
committed
Extract headers and pass them into CheckData.php
1 parent 8ff3326 commit fce7ac8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/DataTransferObject/CheckData.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ final class CheckData
99
public function __construct(
1010
public int $statusCode,
1111
public string $reasonPhrase,
12+
public array $headers = [],
1213
) {
1314
}
1415
}

src/UrlChecker.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public static function check(string $url, ?string $userAgent = null): CheckData
4444
return new CheckData(
4545
statusCode: $response->getStatusCode(),
4646
reasonPhrase: $response->getReasonPhrase(),
47+
headers: $response->getHeaders(),
4748
);
4849
} catch (GuzzleException $guzzleException) {
4950
return new CheckData(

0 commit comments

Comments
 (0)