2025-02-26 13:28:21 +00:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2025, Luke Wilde <luke@ladybird.org>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2025-12-01 10:36:50 +01:00
|
|
|
#include <LibIPC/Forward.h>
|
2025-02-26 13:28:21 +00:00
|
|
|
#include <LibRequests/ALPNHttpVersion.h>
|
|
|
|
|
|
|
|
|
|
namespace Requests {
|
|
|
|
|
|
|
|
|
|
struct RequestTimingInfo {
|
2025-06-28 03:24:38 -07:00
|
|
|
i64 domain_lookup_start_microseconds { 0 };
|
|
|
|
|
i64 domain_lookup_end_microseconds { 0 };
|
|
|
|
|
i64 connect_start_microseconds { 0 };
|
|
|
|
|
i64 connect_end_microseconds { 0 };
|
|
|
|
|
i64 secure_connect_start_microseconds { 0 };
|
|
|
|
|
i64 request_start_microseconds { 0 };
|
|
|
|
|
i64 response_start_microseconds { 0 };
|
|
|
|
|
i64 response_end_microseconds { 0 };
|
|
|
|
|
i64 encoded_body_size { 0 };
|
2025-02-26 13:28:21 +00:00
|
|
|
ALPNHttpVersion http_version_alpn_identifier { ALPNHttpVersion::None };
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
namespace IPC {
|
|
|
|
|
|
|
|
|
|
template<>
|
2025-12-01 10:36:50 +01:00
|
|
|
ErrorOr<void> encode(Encoder&, Requests::RequestTimingInfo const&);
|
2025-02-26 13:28:21 +00:00
|
|
|
|
|
|
|
|
template<>
|
2025-12-01 10:36:50 +01:00
|
|
|
ErrorOr<Requests::RequestTimingInfo> decode(Decoder&);
|
2025-02-26 13:28:21 +00:00
|
|
|
|
|
|
|
|
}
|