ResponseStatus

scamper.http.ResponseStatus
See theResponseStatus companion trait

Provides factory for ResponseStatus.

Attributes

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

Members list

Type members

Classlikes

object Registry

Contains registered response statuses.

Contains registered response statuses.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Registry.type

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

def apply(statusCode: Int): ResponseStatus

Gets registered response status for given status code.

Gets registered response status for given status code.

Throws NoSuchElementException if status code is not registered.

Attributes

def apply(statusCode: Int, reasonPhrase: String): ResponseStatus

Creates response status with supplied status code and reason phrase.

Creates response status with supplied status code and reason phrase.

Attributes

def get(statusCode: Int): Option[ResponseStatus]

Gets response status for given status code, if registered.

Gets response status for given status code, if registered.

Attributes