diff --git a/interfaces/innerkits/http_client/include/http_client_response.h b/interfaces/innerkits/http_client/include/http_client_response.h index 4c401b5d..88bf7df4 100644 --- a/interfaces/innerkits/http_client/include/http_client_response.h +++ b/interfaces/innerkits/http_client/include/http_client_response.h @@ -68,19 +68,19 @@ enum ResponseCode { */ struct PerformanceInfo { /** Time taken from startup to DNS resolution completion, in milliseconds. */ - double dnsTiming; + double dnsTiming = 0.0; /** Time taken from startup to TCP connection completion, in milliseconds. */ - double connectTiming; + double connectTiming = 0.0; /** Time taken from startup to TLS connection completion, in milliseconds. */ - double tlsTiming; + double tlsTiming = 0.0; /** Time taken from startup to start sending the first byte, in milliseconds. */ - double firstSendTiming; + double firstSendTiming = 0.0; /** Time taken from startup to receiving the first byte, in milliseconds. */ - double firstReceiveTiming; + double firstReceiveTiming = 0.0; /** Time taken from startup to the completion of the request, in milliseconds. */ - double totalTiming; + double totalTiming = 0.0; /** Time taken from startup to completion of all redirection steps, in milliseconds. */ - double redirectTiming; + double redirectTiming = 0.0; }; class HttpClientResponse {