HttpResponse

harness.http.server.HttpResponse$
See theHttpResponse companion trait
object HttpResponse

Attributes

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

Members list

Type members

Classlikes

final case class Found extends HttpResponse

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait HttpResponse
class Object
trait Matchable
class Any
Show all
Self type
case object NotFound extends HttpResponse

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait HttpResponse
class Object
trait Matchable
class Any
Show all
Self type
NotFound.type
object Return

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Return.type
sealed trait Return

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object fromHttpCode

Attributes

Supertypes
class Object
trait Matchable
class Any
Self 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(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 file(path: Path, code: HttpCode): ZIO[HarnessEnv & Scope, FSError, Found]
def jarResource(path: String, code: HttpCode): ZIO[HarnessEnv & Scope, JarResourceError, Found]
def redirect(location: String, code: HttpCode): Found