Response

io.quartz.http2.model.Response
See theResponse companion class
object Response

A companion object for the Response case class.

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Response.type

Members list

Type members

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 Error(code: StatusCode): Response

Constructs an HTTP response with the specified status code and an empty body.

Constructs an HTTP response with the specified status code and an empty body.

Value parameters

code

the status code for the response

Attributes

Returns

a new HTTP response

def Ok(): Response

Constructs an HTTP response with a 200 status code and an empty body.

Constructs an HTTP response with a 200 status code and an empty body.

Attributes

Returns

a new HTTP response