ServerResponse

sttp.tapir.server.model.ServerResponse
See theServerResponse companion object
case class ServerResponse[+B](code: StatusCode, headers: Seq[Header], body: Option[B], source: Option[ValuedEndpointOutput[_]]) extends ResponseMetadata

Value parameters

source

The output, from which this response has been created.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait ResponseMetadata
trait HasHeaders
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def addHeaders(additionalHeaders: Seq[Header]): ServerResponse[B]
def showCodeAndHeaders: String
def showShort: String
override def statusText: String

Attributes

Definition Classes
ResponseMetadata
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
ResponseMetadata -> Any

Inherited methods

def contentLength: Option[Long]

Attributes

Inherited from:
HasHeaders
def contentType: Option[String]

Attributes

Inherited from:
HasHeaders
def cookies: Seq[Either[String, CookieWithMeta]]

Attributes

Inherited from:
HasHeaders
def header(h: String): Option[String]

Attributes

Inherited from:
HasHeaders
def headers(h: String): Seq[String]

Attributes

Inherited from:
HasHeaders
def is200: Boolean

Attributes

Inherited from:
ResponseMetadata
def isClientError: Boolean

Attributes

Inherited from:
ResponseMetadata
def isRedirect: Boolean

Attributes

Inherited from:
ResponseMetadata
def isServerError: Boolean

Attributes

Inherited from:
ResponseMetadata
def isSuccess: Boolean

Attributes

Inherited from:
ResponseMetadata
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def unsafeCookies: Seq[CookieWithMeta]

Attributes

Inherited from:
HasHeaders