改名
This commit is contained in:
@@ -52,6 +52,8 @@ class Http extends \Server\Abstracts\Http implements OnClose, OnConnect
|
||||
} catch (Error | \Throwable $exception) {
|
||||
$psr7Response = $this->exceptionHandler->emit($exception, $this->response);
|
||||
} finally {
|
||||
$request_time_float = $request->server['request_time_float'] - $request->server['request_time'];
|
||||
$psr7Response->withHeader('Run-Time', microtime(true) - $request_time_float);
|
||||
$this->responseEmitter->sender($response, $psr7Response);
|
||||
$this->eventDispatch->dispatch(new OnAfterRequest());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user