summaryrefslogtreecommitdiff
path: root/indra/llcorehttp/httpoptions.h
diff options
context:
space:
mode:
authorfmartian <FredMartian@gmail.com>2025-08-18 21:16:54 +0200
committerGitHub <noreply@github.com>2025-08-18 12:16:54 -0700
commit89c373c20b6032bab819e99cc8ace7b7e6b92360 (patch)
tree66779c01f62f98e56ef1667acdbd3cb5bd79ae39 /indra/llcorehttp/httpoptions.h
parent527ee429e616e85ce388c9aa65dde3b13b777ff4 (diff)
Add new LastModified option to HttpRequest handling (#4563)
* Add LastModified: option to the HttpOptions and handle it properly in HttpOpRequest::prepareRequest() * grid_name could be empty if an invalid grid was passed in.
Diffstat (limited to 'indra/llcorehttp/httpoptions.h')
-rw-r--r--indra/llcorehttp/httpoptions.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/llcorehttp/httpoptions.h b/indra/llcorehttp/httpoptions.h
index 56a28013cb..fdb277c66e 100644
--- a/indra/llcorehttp/httpoptions.h
+++ b/indra/llcorehttp/httpoptions.h
@@ -178,6 +178,13 @@ public:
return mNoBody;
}
+ // Default: 0
+ void setLastModified(time_t lastModified);
+ time_t getLastModified() const
+ {
+ return mLastModified;
+ }
+
/// Sets default behavior for verifying that the name in the
/// security certificate matches the name of the host contacted.
/// Defaults false if not set, but should be set according to
@@ -199,6 +206,7 @@ protected:
bool mVerifyHost;
int mDNSCacheTimeout;
bool mNoBody;
+ time_t mLastModified;
static bool sDefaultVerifyPeer;
}; // end class HttpOptions