@@ -96,18 +96,21 @@ class HTTPRequest {
9696 return m_timeout_duration;
9797 }
9898
99- // Handle HTTP request errors and convert them to appropriate POSIX error codes.
100- // This function can be used anywhere HTTP requests are made to provide
101- // consistent error handling.
99+ // Handle HTTP request errors and convert them to appropriate POSIX error
100+ // codes. This function can be used anywhere HTTP requests are made to
101+ // provide consistent error handling.
102102 //
103103 // - request: The HTTPRequest object that was used for the request
104104 // - log: The logger instance for error reporting
105- // - operation: A string describing the operation being performed (for logging)
105+ // - operation: A string describing the operation being performed (for
106+ // logging)
106107 // - context: Additional context information (for logging)
107108 //
108- // Returns: A POSIX error code (-ENOENT, -EIO, -EPERM, etc.) or 0 if no error
109+ // Returns: A POSIX error code (-ENOENT, -EIO, -EPERM, etc.) or 0 if no
110+ // error
109111 static int HandleHTTPError (const HTTPRequest &request, XrdSysError &log,
110- const char *operation, const char *context = nullptr );
112+ const char *operation,
113+ const char *context = nullptr );
111114
112115 protected:
113116 // Send the request to the HTTP server.
@@ -299,7 +302,7 @@ class HTTPRequest {
299302 static std::chrono::steady_clock::duration m_timeout_duration;
300303};
301304
302- class HTTPUpload : public HTTPRequest {
305+ class HTTPUpload final : public HTTPRequest {
303306 public:
304307 HTTPUpload (const std::string &h, const std::string &o, XrdSysError &log,
305308 const TokenFile *token)
@@ -332,7 +335,7 @@ class HTTPUpload : public HTTPRequest {
332335 std::string path;
333336};
334337
335- class HTTPDownload : public HTTPRequest {
338+ class HTTPDownload final : public HTTPRequest {
336339 public:
337340 HTTPDownload (const std::string &h, const std::string &o, XrdSysError &log,
338341 const TokenFile *token)
@@ -348,7 +351,7 @@ class HTTPDownload : public HTTPRequest {
348351 std::string object;
349352};
350353
351- class HTTPHead : public HTTPRequest {
354+ class HTTPHead final : public HTTPRequest {
352355 public:
353356 HTTPHead (const std::string &h, const std::string &o, XrdSysError &log,
354357 const TokenFile *token)
@@ -364,10 +367,10 @@ class HTTPHead : public HTTPRequest {
364367 std::string object;
365368};
366369
367- class HTTPDelete : public HTTPRequest {
370+ class HTTPDelete final : public HTTPRequest {
368371 public:
369372 HTTPDelete (const std::string &h, const std::string &o, XrdSysError &log,
370- const TokenFile *token)
373+ const TokenFile *token)
371374 : HTTPRequest(h, log, token), object(o) {
372375 hostUrl = hostUrl + " /" + object;
373376 }
@@ -378,4 +381,4 @@ class HTTPDelete : public HTTPRequest {
378381
379382 protected:
380383 std::string object;
381- };
384+ };
0 commit comments