package
0.2.0
Repository: https://github.com/pquerna/cachecontrol.git
Documentation: pkg.go.dev

# Functions

LOW LEVEL API: Check if a object is cachable.
LOW LEVEL API: Check if a request is cacheable.
LOW LEVEL API: Check if a response is cacheable.
LOW LEVEL API: Update an objects expiration time.
LOW LEVEL API: Parses a Cache Control Header from a Request into a set of directives.
LOW LEVEL API: Parses a Cache Control Header from a Response into a set of directives.
Evaluate cachability based on an HTTP request, and parts of the response.
Evaluate cachability based on an HTTP request, and parts of the response.

# Constants

The request included an Authorization header without an explicit Public or Expiration time: http://tools.ietf.org/html/rfc7234#section-3.2.
The request method was CONNECT and CONNECTs are not cachable.
The request method was DELETE and DELETEs are not cachable.
The request method was OPTIONS and OPTIONS are not cachable.
The request method was POST and an Expiration header was not supplied.
The request method was PUT and PUTs are not cachable.
The request method was TRACE and TRACEs are not cachable.
The request method was not recognized by cachecontrol, and should not be cached.
The request included an Cache-Control: no-store header.
The response included an Cache-Control: no-store header.
The response included an Cache-Control: private header and this is not a Private cache.
The response failed to meet at least one of the conditions specified in RFC 7234 section 3: http://tools.ietf.org/html/rfc7234#section-3.
Disconnected Operation A cache SHOULD generate this if it is intentionally disconnected from the rest of the network for a period of time.
Heuristic Expiration A cache SHOULD generate this if it heuristically chose a freshness lifetime greater than 24 hours and the response's age is greater than 24 hours.
Miscellaneous Persistent Warning The warning text can include arbitrary information to be presented to a human user or logged.
Miscellaneous Warning The warning text can include arbitrary information to be presented to a human user or logged.
Response is Stale A cache SHOULD generate this whenever the sent response is stale.
Revalidation Failed A cache SHOULD generate this when sending a stale response because an attempt to validate the response failed, due to an inability to reach the server.
Transformation Applied This Warning code MUST be added by a proxy if it applies any transformation to the representation, such as changing the content-coding, media-type, or modifying the representation data, unless this Warning code already appears in the response.

# Variables

Experimental.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

LOW LEVEL API: Represents a potentially cachable HTTP object.
LOW LEVEL API: Represents the results of examining an Object with CachableObject and ExpirationObject.
LOW LEVEL API: Representation of possible request directives in a `Cache-Control` header: http://tools.ietf.org/html/rfc7234#section-5.2.1 Note: Many fields will be `nil` in practice.
LOW LEVEL API: Repersentation of possible response directives in a `Cache-Control` header: http://tools.ietf.org/html/rfc7234#section-5.2.2 Note: Many fields will be `nil` in practice.

# Type aliases

DeltaSeconds specifies a non-negative integer, representing time in seconds: http://tools.ietf.org/html/rfc7234#section-1.2.1 When set to -1, this means unset.
Fields present in a header.
Repersents a potential Reason to not cache an object.
Repersents an HTTP Warning: http://tools.ietf.org/html/rfc7234#section-5.5.