- Companion:
- class
Type members
Classlikes
Value members
Concrete methods
Attempts to create an Http that succeeds with the provided value, capturing all exceptions on it's way.
Attempts to create an Http that succeeds with the provided value, capturing all exceptions on it's way.
Creates an HTTP app which always responds with a 400 status code.
Creates an HTTP app which always responds with a 400 status code.
Creates an HTTP app which accepts a request and produces response.
Creates an HTTP app which accepts a request and produces response.
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]
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]
Creates an HTTP app which accepts a request and produces response effectfully.
Creates an HTTP app which accepts a request and produces response effectfully.
Returns an http app that dies with the specified Throwable
. This method
can be used for terminating an app because a defect has been detected in
the code. Terminating an http app leads to aborting handling of an HTTP
request and responding with 500 Internal Server Error.
Returns an http app that dies with the specified Throwable
. This method
can be used for terminating an app because a defect has been detected in
the code. Terminating an http app leads to aborting handling of an HTTP
request and responding with 500 Internal Server Error.
Returns an app that dies with a RuntimeException
having the specified
text message. This method can be used for terminating a HTTP request
because a defect has been detected in the code.
Returns an app that dies with a RuntimeException
having the specified
text message. This method can be used for terminating a HTTP request
because a defect has been detected in the code.
Creates an Http app that responds with 500 status code
Creates an Http app that responds with 500 status code
Flattens an Http app of an that returns an effectful response
Flattens an Http app of an that returns an effectful response
Creates an Http app that responds with 403 - Forbidden status code
Creates an Http app that responds with 403 - Forbidden status code
Creates an Http app which always responds the provided data and a 200 status code
Creates an Http app which always responds the provided data and a 200 status code
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.
Creates a Http from an pure function from A to HExit[R,E,B]
Creates a Http from an pure function from A to HExit[R,E,B]
Creates an Http
from a function that takes a value of type A
and
returns with a ZIO[R, Option[E], B]
. The returned effect can fail with a
None
to signal "not found" to the backend.
Creates an Http
from a function that takes a value of type A
and
returns with a ZIO[R, Option[E], B]
. The returned effect can fail with a
None
to signal "not found" to the backend.
Creates an HTTP that can serve files on the give path.
Creates an HTTP that can serve files on the give path.
Creates a Http that always succeeds with a 200 status code and the provided ZStream as the body
Creates a Http that always succeeds with a 200 status code and the provided ZStream as the body
Creates a Http that always succeeds with a 200 status code and the provided ZStream as the body
Creates a Http that always succeeds with a 200 status code and the provided ZStream as the body
Creates an HTTP app which always responds with the provided Html page.
Creates an HTTP app which always responds with the provided Html page.
Creates an HTTP app which always responds with a 405 status code.
Creates an HTTP app which always responds with a 405 status code.
Creates an Http app that fails with a NotFound exception.
Creates an Http app that fails with a NotFound exception.
Creates an HTTP app which always responds with a 200 status code.
Creates an HTTP app which always responds with a 200 status code.
Creates an Http app which always responds with the same value.
Creates an Http app which always responds with the same value.
Creates an HTTP app which always responds with the same status code and empty data.
Creates an HTTP app which always responds with the same status code and empty data.
Creates an Http that always returns the same response and never fails.
Creates an Http that always returns the same response and never fails.
Creates an Http app which responds with an Html page using the built-in template.
Creates an Http app which responds with an Html page using the built-in template.
Creates an Http app which always responds with the same plain text.
Creates an Http app which always responds with the same plain text.