HttpResponse

Companion:
class
trait Sum
trait Mirror
class Object
trait Matchable
class Any

Type members

Classlikes

final case class Found extends HttpResponse
case object NotFound extends HttpResponse

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete methods

def apply(value: String, code: HttpCode): Found
def encode[T](value: T, code: HttpCode)(using evidence$1: StringEncoder[T]): Found
def encodeJson[T](value: T, code: HttpCode)(using evidence$2: JsonEncoder[T]): Found
def fileOrFail(path: Path, code: HttpCode): SHRIO[Scope, HttpResponse]
def fileOrNotFound(path: Path, code: HttpCode): SHRIO[Scope, HttpResponse]
def genericFile(path: Path, code: HttpCode)(onDNE: => SHRIO[Scope, HttpResponse]): SHRIO[Scope, HttpResponse]
def redirect(location: String, code: HttpCode): Found