object Http
- Alphabetic
- By Inheritance
- Http
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final class Collect[In] extends AnyVal
- final class CollectExit[In] extends AnyVal
- final class CollectHandler[In] extends AnyVal
- final class CollectHttp[In] extends AnyVal
- final class CollectZIO[In] extends AnyVal
- final class FromHttp[In] extends AnyVal
- final class FromHttpZIO[In] extends AnyVal
- final class FromOptionalHandler[In] extends AnyVal
- final class FromOptionalHandlerZIO[In] extends AnyVal
- implicit final class HttpRouteSyntax[R, Err] extends AnyVal
- implicit final class ResponseOutputSyntax[-R, +Err, -In] extends AnyVal
- sealed trait Route[-R, +Err, -In, +Out] extends Http[R, Err, In, Out]
- final case class Static[-R, +Err, -In, +Out](handler: Handler[R, Err, In, Out]) extends Http[R, Err, In, Out] with Product with Serializable
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def collect[In]: Collect[In]
Creates an HTTP app which accepts a request and produces response.
- def collectExit[In]: CollectExit[In]
Create an HTTP app from a partial function from A to HExit[R,E,B]
- def collectHandler[In]: CollectHandler[In]
- def collectRoute[In]: CollectHttp[In]
Create an HTTP app from a partial function from A to Http[R,E,A,B]
- def collectZIO[In]: CollectZIO[In]
Creates an HTTP app which accepts a request and produces response effectfully.
- def empty: Http[Any, Nothing, Any, Nothing]
Creates an empty Http value
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fromFile(file: => File)(implicit trace: Trace): Http[Any, Throwable, Any, Response]
Creates an Http app from the contents of a file.
- 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.
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.
- def fromHandler[R, Err, In, Out](handler: Handler[R, Err, In, Out]): Http[R, Err, In, Out]
- def fromHttp[In]: FromHttp[In]
- def fromHttpZIO[In]: FromHttpZIO[In]
- def fromOptionalHandler[In]: FromOptionalHandler[In]
- def fromOptionalHandlerZIO[In]: FromOptionalHandlerZIO[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.
- def fromResource(path: String)(implicit trace: Trace): Http[Any, Throwable, Any, Response]
Creates an Http app from a resource path
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getResource(path: String)(implicit trace: Trace): Http[Any, Throwable, Any, java.net.URL]
Attempts to retrieve files from the classpath.
- def getResourceAsFile(path: String)(implicit trace: Trace): Http[Any, Throwable, Any, File]
Attempts to retrieve files from the classpath.
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- case object Empty extends Http[Any, Nothing, Any, Nothing] with Product with Serializable