wip: refactoring the cache logic

This commit is contained in:
Jun Kurihara 2023-12-09 03:34:00 +09:00
commit f5197d0869
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
6 changed files with 261 additions and 22 deletions

View file

@ -84,6 +84,15 @@ pub enum RpxyError {
#[error("Failed to fetch from upstream: {0}")]
FailedToFetchFromUpstream(String),
// Cache errors,
#[cfg(feature = "cache")]
#[error("Invalid null request and/or response")]
NullRequestOrResponse,
#[cfg(feature = "cache")]
#[error("Failed to write byte buffer")]
FailedToWriteByteBufferForCache,
// Upstream connection setting errors
#[error("Unsupported upstream option")]
UnsupportedUpstreamOption,