diff options
| author | Dan Engelbrecht <[email protected]> | 2024-03-14 16:33:17 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2024-03-14 16:33:17 +0100 |
| commit | 45bfc721dd049193abf3b2be2aa7b097466ddbe9 (patch) | |
| tree | abb6cf119aa148972aabad730ed384c115177cf1 /src/zenutil/include | |
| parent | change code owners for Enterprise github user names (#7) (diff) | |
| download | zen-45bfc721dd049193abf3b2be2aa7b097466ddbe9.tar.xz zen-45bfc721dd049193abf3b2be2aa7b097466ddbe9.zip | |
clean up test linking (#4)
- Improvement: Add zenhttp-test and zenutil-test
- Improvement: Moved cachepolicy test to cachepolicy.cpp
- Improvement: Renamed cachestore tests from z$ to cachestore
- Improvement: Moved test linking so test for a lib is linked by <lib>-test
- Improvement: Removed HttpRequestParseRelativeUri in httpstructuredcache.cpp and use the one in cacherequests.h instead
Diffstat (limited to 'src/zenutil/include')
| -rw-r--r-- | src/zenutil/include/zenutil/cache/cachepolicy.h | 2 | ||||
| -rw-r--r-- | src/zenutil/include/zenutil/cache/cacherequests.h | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/zenutil/include/zenutil/cache/cachepolicy.h b/src/zenutil/include/zenutil/cache/cachepolicy.h index c9c9e78a4..7773cd3d1 100644 --- a/src/zenutil/include/zenutil/cache/cachepolicy.h +++ b/src/zenutil/include/zenutil/cache/cachepolicy.h @@ -224,4 +224,6 @@ public: inline void Reset() { *this = OptionalCacheRecordPolicy(); } }; +void cachepolicy_forcelink(); + } // namespace zen diff --git a/src/zenutil/include/zenutil/cache/cacherequests.h b/src/zenutil/include/zenutil/cache/cacherequests.h index f1999ebfe..abc5a3c13 100644 --- a/src/zenutil/include/zenutil/cache/cacherequests.h +++ b/src/zenutil/include/zenutil/cache/cacherequests.h @@ -240,6 +240,10 @@ namespace cacherequests { ////////////////////////////////////////////////////////////////////////// + std::optional<std::string> GetValidNamespaceName(std::string_view Name); + std::optional<std::string> GetValidBucketName(std::string_view Name); + std::optional<IoHash> GetValidIoHash(std::string_view Hash); + struct HttpRequestData { std::optional<std::string> Namespace; @@ -248,7 +252,7 @@ namespace cacherequests { std::optional<IoHash> ValueContentId; }; - bool HttpRequestParseRelativeUri(std::string_view Key, HttpRequestData& Data); + bool HttpRequestParseRelativeUri(std::string_view Key, std::string_view DefaultNamespace, HttpRequestData& Data); // Temporarily public std::optional<std::string> GetRequestNamespace(const CbObjectView& Params); |