RetryAfter

zio.http.Header$.RetryAfter$
See theRetryAfter companion trait
object RetryAfter extends HeaderType

The RetryAfter HTTP header contains the date/time after which to retry

RetryAfter:

Date: , :: GMT

Example:

Expires: Wed, 21 Oct 2015 07:28:00 GMT

Or RetryAfter the delay seconds.

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

final case class ByDate(date: ZonedDateTime) extends RetryAfter

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Header
class Object
trait Matchable
class Any
final case class ByDuration(delay: Duration) extends RetryAfter

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Header
class Object
trait Matchable
class Any

Types

override type HeaderValue = RetryAfter

Inherited types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

override def name: String

Attributes

Definition Classes
def parse(dateOrSeconds: String): Either[String, RetryAfter]
def render(retryAfter: RetryAfter): String