ResponseStatus

scamper.http.ResponseStatus
See theResponseStatus companion object
sealed trait ResponseStatus

Defines HTTP response status.

Attributes

See also
Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def reasonPhrase: String

Gets reason phrase.

Gets reason phrase.

Attributes

def statusCode: Int

Gets status code.

Gets status code.

Attributes

Concrete methods

def apply(body: Entity): HttpResponse

Creates HttpResponse with this status and supplied body.

Creates HttpResponse with this status and supplied body.

Attributes

def apply(body: InputStream): HttpResponse

Creates HttpResponse with this status and supplied body.

Creates HttpResponse with this status and supplied body.

Attributes

def apply(body: Reader): HttpResponse

Creates HttpResponse with this status and supplied body.

Creates HttpResponse with this status and supplied body.

Attributes

def apply(body: Array[Byte]): HttpResponse

Creates HttpResponse with this status and supplied body.

Creates HttpResponse with this status and supplied body.

Attributes

def apply(body: String): HttpResponse

Creates HttpResponse with this status and supplied body.

Creates HttpResponse with this status and supplied body.

Attributes

def apply(body: File): HttpResponse

Creates HttpResponse with this status and supplied body.

Creates HttpResponse with this status and supplied body.

Attributes

def isClientError: Boolean

Tests for client error status code.

Tests for client error status code.

Attributes

def isInformational: Boolean

Tests for informational status code.

Tests for informational status code.

Attributes

def isRedirection: Boolean

Tests for redirection status code.

Tests for redirection status code.

Attributes

def isServerError: Boolean

Tests for server error status code.

Tests for server error status code.

Attributes

def isSuccessful: Boolean

Tests for successful status code.

Tests for successful status code.

Attributes