Class Http
java.lang.Object
com.github.mizosoft.methanol.internal.util.Http
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisHeuristicallyCacheable(int statusCode) Returns whether a response with the given code can be cached based on heuristic expiry in case explicit expiry is absent.static booleanisIdempotent(String method) Returns whether the given request method is idempotent, and hence may be retried multiple times.static booleanReturns whether the given request method is unsafe, and hence may invalidate cached entries.
-
Method Details
-
isHeuristicallyCacheable
public static boolean isHeuristicallyCacheable(int statusCode) Returns whether a response with the given code can be cached based on heuristic expiry in case explicit expiry is absent. Based on rfc7231 Section 6.1. -
isSafe
Returns whether the given request method is unsafe, and hence may invalidate cached entries. Based on rfc7231 Section 4.2.1. -
isIdempotent
Returns whether the given request method is idempotent, and hence may be retried multiple times. Based on rfc7231 Section 4.2.2.
-