Skip to content

Commit

Permalink
Adds REQUEST_TIME_FLOAT (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro authored Apr 1, 2022
1 parent 372fdf7 commit ef5a17f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Runtime/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ public static function fromLambdaEvent(array $event, array $serverVariables = []
'REMOTE_PORT' => $headers['x-forwarded-port'] ?? 80,
'REQUEST_METHOD' => $event['httpMethod'],
'REQUEST_URI' => $uri,
'REQUEST_TIME' => time(),
'REQUEST_TIME_FLOAT' => microtime(true),
'SERVER_ADDR' => '127.0.0.1',
'SERVER_NAME' => $headers['host'] ?? 'localhost',
'SERVER_PORT' => $headers['x-forwarded-port'] ?? 80,
Expand Down

0 comments on commit ef5a17f

Please sign in to comment.