From 67bc5bfc2aa0a771d0caab8b540b93f9c98fdfe9 Mon Sep 17 00:00:00 2001 From: Aaron Po Date: Sun, 19 Jul 2026 04:10:32 -0400 Subject: [PATCH] Formatted includes/web_client --- .../includes/web_client/http_web_client.h | 44 +++++++++---------- .../pipeline/includes/web_client/web_client.h | 32 +++++++------- 2 files changed, 38 insertions(+), 38 deletions(-) diff --git a/tooling/pipeline/includes/web_client/http_web_client.h b/tooling/pipeline/includes/web_client/http_web_client.h index 48306e59..2db9a277 100644 --- a/tooling/pipeline/includes/web_client/http_web_client.h +++ b/tooling/pipeline/includes/web_client/http_web_client.h @@ -25,31 +25,31 @@ * bound to a single origin at construction time. */ class HttpWebClient final : public WebClient { - public: - explicit HttpWebClient(std::shared_ptr logger) - : logger_(std::move(logger)) {} - ~HttpWebClient() override = default; + public: + explicit HttpWebClient(std::shared_ptr logger) + : logger_(std::move(logger)) {} + ~HttpWebClient() override = default; - /** - * @brief Executes a blocking HTTP/HTTPS GET request against a full URL. - * - * @param url Fully-qualified URL, e.g. - * "https://en.wikipedia.org/api/rest_v1/page/summary/Berlin" - * @return Response body on HTTP 2xx; throws std::runtime_error otherwise. - */ - std::string Get(const std::string& url) override; + /** + * @brief Executes a blocking HTTP/HTTPS GET request against a full URL. + * + * @param url Fully-qualified URL, e.g. + * "https://en.wikipedia.org/api/rest_v1/page/summary/Berlin" + * @return Response body on HTTP 2xx; throws std::runtime_error otherwise. + */ + std::string Get(const std::string& url) override; - /** - * @brief Percent-encodes a single URI component (query parameter value or - * path segment). Delegates to httplib::encode_uri_component(). - * - * @param value Raw string to encode. - * @return Percent-encoded string safe for use in a URL. - */ - std::string EncodeURL(const std::string& value) override; + /** + * @brief Percent-encodes a single URI component (query parameter value or + * path segment). Delegates to httplib::encode_uri_component(). + * + * @param value Raw string to encode. + * @return Percent-encoded string safe for use in a URL. + */ + std::string EncodeURL(const std::string& value) override; - private: - std::shared_ptr logger_; + private: + std::shared_ptr logger_; }; #endif // BIERGARTEN_PIPELINE_INCLUDES_WEB_CLIENT_HTTP_WEB_CLIENT_H_ diff --git a/tooling/pipeline/includes/web_client/web_client.h b/tooling/pipeline/includes/web_client/web_client.h index a280b42b..7d290088 100644 --- a/tooling/pipeline/includes/web_client/web_client.h +++ b/tooling/pipeline/includes/web_client/web_client.h @@ -12,24 +12,24 @@ * @brief Abstract web client interface. */ class WebClient { - public: - virtual ~WebClient() = default; + public: + virtual ~WebClient() = default; - /** - * @brief Executes an HTTP GET request. - * - * @param url Request URL. - * @return Response body. - */ - virtual std::string Get(const std::string& url) = 0; + /** + * @brief Executes an HTTP GET request. + * + * @param url Request URL. + * @return Response body. + */ + virtual std::string Get(const std::string& url) = 0; - /** - * @brief URL-encodes a string value. - * - * @param value Raw string value. - * @return Encoded value safe for URL usage. - */ - virtual std::string EncodeURL(const std::string& value) = 0; + /** + * @brief URL-encodes a string value. + * + * @param value Raw string value. + * @return Encoded value safe for URL usage. + */ + virtual std::string EncodeURL(const std::string& value) = 0; }; #endif // BIERGARTEN_PIPELINE_INCLUDES_WEB_CLIENT_WEB_CLIENT_H_