Endpoint

harness.http.server.Endpoint
See theEndpoint companion object
final case class Endpoint[-R, ET <: Any](spec: EndpointSpec[ET], implementation: Implementation[R, ET])

Attributes

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

Members list

Value members

Concrete methods

def handle(request: HttpRequest, parsedPath: Path[ET]): ZIO[R, DomainError, HttpResponse[Send[OutputBody[ET]]]]
def handleRaw(request: HttpRequest, parsedPath: Path[ET]): ZIO[R, DomainError, HttpResponse[OutputStream]]
def handleScoped(request: HttpRequest, parsedPath: Path[ET]): ZIO[Scope & R, DomainError, HttpResponse[Send[OutputBody[ET]]]]
def parseAndHandle(request: HttpRequest): ZIO[R, DomainError, Option[HttpResponse[Send[OutputBody[ET]]]]]

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product