-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add ETag Middleware #182
add ETag Middleware #182
Conversation
This also closes the side-discussion of #181 around ETags |
@DavZim Thanks for PR. It will take some time to review. I will try this week. In the meantime I will submit v 1.0.0 to CRAN aa they asked to fix failing tests before 2022-03-30. We can include this PR to the next 1.1.0 version. |
@dselivanov I know you are busy and I highly appreciate your free maintenance of open source projects. |
@artemklevtsov any comments? |
Looks good for me. |
Codecov Report
@@ Coverage Diff @@
## dev #182 +/- ##
==========================================
- Coverage 95.07% 94.86% -0.21%
==========================================
Files 27 28 +1
Lines 1300 1364 +64
==========================================
+ Hits 1236 1294 +58
- Misses 64 70 +6
Continue to review full report at Codecov.
|
@DavZim RestRserve 1.1.0 is on CRAN - https://cran.r-project.org/web/packages/RestRserve/ |
This PR adds Middleware for ETags to RestRServe.
ETags are supported for static files but also for other returned objects. Note, that this PR adds
digest
as a dependency, which can be included as a Suggests if needed.Headers currently implemented are:
ETag
andLast-Modified
If-None-Match
andIf-Modified-Since
(Not (yet) implemented areIf-Match
andIF-Unmodified-Since
.Similar implementations can be found for Go fiber or fastapi.
A simple example of usage is found in the code example: