public interface HttpCacheToolkit
Modifier and Type | Method and Description |
---|---|
void |
addEtag(Context context,
Result result,
Long lastModified)
Adds etag to result.
|
boolean |
isModified(Optional<String> etag,
Optional<Long> lastModified,
Context context)
Checks if resource has been modified.
|
boolean isModified(Optional<String> etag, Optional<Long> lastModified, Context context)
etag
- - may be absentlastModified
- - may be absentcontext
- the Context of this requestCopyright © 2019 ninjaframework. All rights reserved.