/* * Copyright (c) 2024, Andrew Kaster * Copyright (c) 2025, Tim Flynn * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once // Include this header instead of . Only include this header from .cpp files. #include #include #include #include #include #if defined(AK_OS_WINDOWS) # include // Needed because curl.h includes winsock2.h #endif #include namespace RequestServer { ByteString build_curl_resolve_list(DNS::LookupResult const& dns_result, StringView host, u16 port); Requests::NetworkError curl_code_to_network_error(int code); }