HttpApp

zio.http.HttpApp$
See theHttpApp companion class
object HttpApp

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
HttpApp.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

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def collectZIO[R](pf: PartialFunction[Request, ZIO[R, Response, Response]])(implicit trace: Trace): HttpApp[R]

Generates an HttpApp from a partial function. This constructor should only be used for testing. If you are migrating from a pre-release version of ZIO HTTP, you should instead look at the new way of defining routes using zio.http.Routes.

Generates an HttpApp from a partial function. This constructor should only be used for testing. If you are migrating from a pre-release version of ZIO HTTP, you should instead look at the new way of defining routes using zio.http.Routes.

Attributes

Concrete fields

val empty: HttpApp[Any]

An HTTP application that does not handle any routes.

An HTTP application that does not handle any routes.

Attributes