Skip to content

Commit

Permalink
Add the curl microsecond timing fields for HTTP requests
Browse files Browse the repository at this point in the history
These are the `*_TIME_T` fields that are included in the results from
`curl_getinfo()`, when no option is provided.

See https://www.php.net/manual/en/function.curl-getinfo.php for more
info on each field.
  • Loading branch information
josephscott committed Dec 30, 2023
1 parent 7904575 commit 39baea2
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,13 @@ private function createAllComponentsReturnType(): Type
'protocol' => $integerType,
'ssl_verifyresult' => $integerType,
'scheme' => $stringType,
'appconnect_time_us' => $integerType,
'connect_time_us' => $integerType,
'namelookup_time_us' => $integerType,
'pretransfer_time_us' => $integerType,
'redirect_time_us' => $integerType,
'starttransfer_time_us' => $integerType,
'total_time_us' => $integerType,
];
foreach ($componentTypesPairedStrings as $componentName => $componentValueType) {
$builder->setOffsetValueType(new ConstantStringType($componentName), $componentValueType);
Expand Down

0 comments on commit 39baea2

Please sign in to comment.