CacheControl

final implicit class CacheControl[T <: HttpMessage](message: T) extends AnyVal

Provides standardized access to Cache-Control header.

class AnyVal
trait Matchable
class Any

Value members

Concrete methods

Gets Cache-Control header values.

Gets Cache-Control header values.

Returns:

header values or empty sequence if Cache-Control is not present

Gets Cache-Control header values if present.

Gets Cache-Control header values if present.

def hasCacheControl: Boolean

Tests for Cache-Control header.

Tests for Cache-Control header.

Creates new message with Cache-Control header removed.

Creates new message with Cache-Control header removed.

def setCacheControl(values: Seq[CacheDirective]): T

Creates new message with Cache-Control header set to supplied values.

Creates new message with Cache-Control header set to supplied values.

Creates new message with Cache-Control header set to supplied values.

Creates new message with Cache-Control header set to supplied values.