trait EntityResponseGenerator extends EmptyResponseGenerator
Helper for the generation of a org.http4s.Response which may contain a body
While it is possible to construct the org.http4s.Response manually, the EntityResponseGenerators offer shortcut syntax to make intention clear and concise.
- Source
- ResponseGenerator.scala
val resp: Task[Response] = Ok("Hello world!")
Example:
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- EntityResponseGenerator
- EmptyResponseGenerator
- ResponseGenerator
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Abstract Value Members
-
abstract
def
getClass(): Class[_]
- Definition Classes
- Any
-
abstract
def
status: Status
- Definition Classes
- ResponseGenerator
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from EntityResponseGenerator to any2stringadd[EntityResponseGenerator] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (EntityResponseGenerator, B)
- Implicit
- This member is added by an implicit conversion from EntityResponseGenerator to ArrowAssoc[EntityResponseGenerator] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
- def apply[A](body: A, headers: Headers)(implicit w: EntityEncoder[A]): Task[Response]
- def apply[A](body: A)(implicit w: EntityEncoder[A]): Task[Response]
-
def
apply(): Task[Response]
- Definition Classes
- EmptyResponseGenerator
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
ensuring(cond: (EntityResponseGenerator) ⇒ Boolean, msg: ⇒ Any): EntityResponseGenerator
- Implicit
- This member is added by an implicit conversion from EntityResponseGenerator to Ensuring[EntityResponseGenerator] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (EntityResponseGenerator) ⇒ Boolean): EntityResponseGenerator
- Implicit
- This member is added by an implicit conversion from EntityResponseGenerator to Ensuring[EntityResponseGenerator] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): EntityResponseGenerator
- Implicit
- This member is added by an implicit conversion from EntityResponseGenerator to Ensuring[EntityResponseGenerator] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): EntityResponseGenerator
- Implicit
- This member is added by an implicit conversion from EntityResponseGenerator to Ensuring[EntityResponseGenerator] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
equals(arg0: Any): Boolean
- Definition Classes
- Any
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from EntityResponseGenerator to StringFormat[EntityResponseGenerator] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
def
hashCode(): Int
- Definition Classes
- Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
toString(): String
- Definition Classes
- Any
-
def
→[B](y: B): (EntityResponseGenerator, B)
- Implicit
- This member is added by an implicit conversion from EntityResponseGenerator to ArrowAssoc[EntityResponseGenerator] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc