final case class DisposableResponse[F[_]](response: HttpResponse[F], dispose: F[Unit]) extends Product with Serializable
A response that allows the response object to used then calls an effect
after its has been consumed via apply
. This is essentially a resource
management hook.
- To do
Use some type of bracket capability, is that universal?
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- DisposableResponse
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new DisposableResponse(response: HttpResponse[F], dispose: F[Unit])
Value Members
- def apply[A](f: (HttpResponse[F]) ⇒ F[A])(implicit F: MonadError[F, Throwable]): F[A]
- val dispose: F[Unit]
- val response: HttpResponse[F]