aboutsummaryrefslogtreecommitdiff
path: root/backends/networking/curl/request.h
diff options
context:
space:
mode:
Diffstat (limited to 'backends/networking/curl/request.h')
-rw-r--r--backends/networking/curl/request.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/backends/networking/curl/request.h b/backends/networking/curl/request.h
index de5308fa52..6a1bc12594 100644
--- a/backends/networking/curl/request.h
+++ b/backends/networking/curl/request.h
@@ -182,6 +182,20 @@ public:
/** Returns Request's current state. */
RequestState state() const;
+
+ /**
+ * Return date this Request received from server.
+ * It could be extracted from "Date" header,
+ * which is kept in NetworkReadStream.
+ *
+ * @note not all Requests do that, so "" is returned
+ * to indicate the date is unknown. That's also true
+ * if no server response available or no "Date" header
+ * was passed.
+ *
+ * @returns date from "Date" response header.
+ */
+ virtual Common::String date() const;
};
} // End of namespace Networking