diff options
author | Ellie Huxtable <ellie@elliehuxtable.com> | 2023-05-21 16:21:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-21 15:21:51 +0000 |
commit | d2240e1163a62f96dfb1cb99c38ffa2390d53c33 (patch) | |
tree | f25616f3855d7f79df9d7d548c901796e136f557 /atuin-common | |
parent | ca263834e93814105ca9ea77ab213cff0bc95faa (diff) |
Allow server configured page size (#994)
* Allow server configured page size
* Backwards compat via semver checks
* Correct header name
Diffstat (limited to 'atuin-common')
-rw-r--r-- | atuin-common/src/api.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/atuin-common/src/api.rs b/atuin-common/src/api.rs index 2eff464e..025464d4 100644 --- a/atuin-common/src/api.rs +++ b/atuin-common/src/api.rs @@ -74,6 +74,12 @@ pub struct StatusResponse { pub count: i64, pub username: String, pub deleted: Vec<String>, + + // These could/should also go on the index of the server + // However, we do not request the server index as a part of normal sync + // I'd rather slightly increase the size of this response, than add an extra HTTP request + pub page_size: i64, // max page size supported by the server + pub version: String, } #[derive(Debug, Serialize, Deserialize)] |