Http

zio.http.Http$
See theHttp companion trait
object Http

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Http.type

Members list

Concise view

Type members

Classlikes

final class Collect[In](val self: Unit) extends AnyVal

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any
final class CollectExit[In](val self: Unit) extends AnyVal

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any
final class CollectHandler[In](val self: Unit) extends AnyVal

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any
final class CollectHttp[In](val self: Unit) extends AnyVal

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any
final class CollectZIO[In](val self: Unit) extends AnyVal

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any
case object Empty extends Http[Any, Nothing, Any, Nothing]

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Http[Any, Nothing, Any, Nothing]
class Object
trait Matchable
class Any
Self type
Empty.type
final class FromHttp[In](val self: Unit) extends AnyVal

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any
final class FromHttpZIO[In](val self: Unit) extends AnyVal

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any
final class FromOptionalHandlerZIO[In](val self: Unit) extends AnyVal

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any
final implicit class HttpRouteSyntax[R, Err](val self: HttpApp[R, Err]) extends AnyVal

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any
final implicit class ResponseOutputSyntax[-R, +Err, -In](val self: Http[R, Err, In, Response]) extends AnyVal

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any
sealed trait Route[-R, +Err, -In, +Out] extends Http[R, Err, In, Out]

Attributes

Graph
Supertypes
trait Http[R, Err, In, Out]
class Object
trait Matchable
class Any
final case class Static[-R, +Err, -In, +Out](handler: Handler[R, Err, In, Out]) extends Http[R, Err, In, Out]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Http[R, Err, In, Out]
class Object
trait Matchable
class Any

Value members

Concrete methods

def collect[In]: Collect[In]

Creates an HTTP app which accepts a request and produces response.

Creates an HTTP app which accepts a request and produces response.

Attributes

Create an HTTP app from a partial function from A to HExit[R,E,B]

Create an HTTP app from a partial function from A to HExit[R,E,B]

Attributes

Create an HTTP app from a partial function from A to Http[R,E,A,B]

Create an HTTP app from a partial function from A to Http[R,E,A,B]

Attributes

def collectZIO[In]: CollectZIO[In]

Creates an HTTP app which accepts a request and produces response effectfully.

Creates an HTTP app which accepts a request and produces response effectfully.

Attributes

def empty: Http[Any, Nothing, Any, Nothing]

Creates an empty Http value

Creates an empty Http value

Attributes

def fromFile(file: => File)(implicit trace: Trace): Http[Any, Throwable, Any, Response]

Creates an Http app from the contents of a file.

Creates an Http app from the contents of a file.

Attributes

def fromFileZIO[R](getFile: ZIO[R, Throwable, File])(implicit trace: Trace): Http[R, Throwable, Any, Response]

Creates an Http app from the contents of a file which is produced from an effect. The operator automatically adds the content-length and content-type headers if possible.

Creates an Http app from the contents of a file which is produced from an effect. The operator automatically adds the content-length and content-type headers if possible.

Attributes

def fromHandler[R, Err, In, Out](handler: Handler[R, Err, In, Out]): Http[R, Err, In, Out]
def fromHttp[In]: FromHttp[In]
def fromPath(head: String, tail: String*)(implicit trace: Trace): Http[Any, Throwable, Any, Response]

Creates an HTTP that can serve files on the give path.

Creates an HTTP that can serve files on the give path.

Attributes

def fromResource(path: String)(implicit trace: Trace): Http[Any, Throwable, Any, Response]

Creates an Http app from a resource path

Creates an Http app from a resource path

Attributes

def getResource(path: String)(implicit trace: Trace): Http[Any, Throwable, Any, URL]

Attempts to retrieve files from the classpath.

Attempts to retrieve files from the classpath.

Attributes

def getResourceAsFile(path: String)(implicit trace: Trace): Http[Any, Throwable, Any, File]

Attempts to retrieve files from the classpath.

Attempts to retrieve files from the classpath.

Attributes

Implicits

Implicits

final implicit def HttpRouteSyntax[R, Err](self: HttpApp[R, Err]): HttpRouteSyntax[R, Err]
final implicit def ResponseOutputSyntax[R, Err, In](self: Http[R, Err, In, Response]): ResponseOutputSyntax[R, Err, In]