object Http

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Http
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. final class Collect[In] extends AnyVal
  2. final class CollectExit[In] extends AnyVal
  3. final class CollectHandler[In] extends AnyVal
  4. final class CollectHttp[In] extends AnyVal
  5. final class CollectZIO[In] extends AnyVal
  6. final case class Empty(errorHandler: Option[(Cause[Nothing]) => ZIO[Any, Nothing, Unit]]) extends Http[Any, Nothing, Any, Nothing] with Product with Serializable
  7. final case class FailedErrorHandler[E](error: E) extends Exception with Product with Serializable
  8. final class FromHandlerZIO[In] extends AnyVal
  9. final class FromHttp[In] extends AnyVal
  10. final class FromHttpZIO[In] extends AnyVal
  11. final class FromOptionalHandler[In] extends AnyVal
  12. final class FromOptionalHandlerZIO[In] extends AnyVal
  13. implicit final class HttpRouteSyntax[R, Err] extends AnyVal
  14. implicit final class ResponseOutputSyntax[-R, +Err, -In] extends AnyVal
  15. sealed trait Route[-R, +Err, -In, +Out] extends Http[R, Err, In, Out]
  16. final case class Static[-R, +Err, -In, +Out](handler: Handler[R, Err, In, Out], errorHandler: Option[(Cause[Nothing]) => ZIO[Any, Nothing, Unit]]) extends Http[R, Err, In, Out] with Product with Serializable

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. def collect[In]: Collect[In]

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

  7. def collectExit[In]: CollectExit[In]

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

  8. def collectHandler[In]: CollectHandler[In]
  9. def collectHttp[In]: CollectHttp[In]

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

  10. def collectZIO[In]: CollectZIO[In]

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

  11. val empty: Http[Any, Nothing, Any, Nothing]

    Creates an empty Http value

  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. def fromFile(file: => File)(implicit trace: Trace): Http[Any, Throwable, Any, Response]

    Creates an Http app from the contents of a file.

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

    Creates an Http app from the contents of a file which is produced from an effect.

    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.

  16. def fromHandler[R, Err, In, Out](handler: Handler[R, Err, In, Out]): Http[R, Err, In, Out]
  17. def fromHandlerZIO[In]: FromHandlerZIO[In]
  18. def fromHttp[In]: FromHttp[In]
  19. def fromHttpZIO[In]: FromHttpZIO[In]
  20. def fromOptionalHandler[In]: FromOptionalHandler[In]
  21. def fromOptionalHandlerZIO[In]: FromOptionalHandlerZIO[In]
  22. 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.

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

    Creates an Http app from a resource path

  24. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. def getResource(path: String)(implicit trace: Trace): Http[Any, Throwable, Any, java.net.URL]

    Attempts to retrieve files from the classpath.

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

    Attempts to retrieve files from the classpath.

  27. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  28. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  29. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  31. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  32. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  33. def toString(): String
    Definition Classes
    AnyRef → Any
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped