Connection

zio.http.Header.Connection
See theConnection companion trait
object Connection extends HeaderType

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
trait HeaderType
class Object
trait Matchable
class Any
Show all
Self type
Connection.type

Members list

Type members

Classlikes

case object Close extends Connection

This directive indicates that either the client or the server would like to close the connection. This is the default on HTTP/1.0 requests.

This directive indicates that either the client or the server would like to close the connection. This is the default on HTTP/1.0 requests.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Connection
trait Header
class Object
trait Matchable
class Any
Show all
Self type
Close.type
case object KeepAlive extends Connection

Any comma-separated list of HTTP headers [Usually keep-alive only] indicates that the client would like to keep the connection open. Keeping a connection open is the default on HTTP/1.1 requests. The list of headers are the name of the header to be removed by the first non-transparent proxy or cache in-between: these headers define the connection between the emitter and the first entity, not the destination node.

Any comma-separated list of HTTP headers [Usually keep-alive only] indicates that the client would like to keep the connection open. Keeping a connection open is the default on HTTP/1.1 requests. The list of headers are the name of the header to be removed by the first non-transparent proxy or cache in-between: these headers define the connection between the emitter and the first entity, not the destination node.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Connection
trait Header
class Object
trait Matchable
class Any
Show all
Self type
KeepAlive.type

Types

override type HeaderValue = Connection

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

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(connection: String): Either[String, Connection]
def render(connection: Connection): String