trait EntityResponseGenerator[F[_], G[_]] extends ResponseGenerator
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: IO[Response] = Ok("Hello world!")
Example:
Linear Supertypes
Known Subclasses
LocationResponseGenerator, AcceptedOps, AlreadyReportedOps, BadGatewayOps, BadRequestOps, ConflictOps, CreatedOps, ExpectationFailedOps, FailedDependencyOps, ForbiddenOps, FoundOps, GatewayTimeoutOps, GoneOps, HttpVersionNotSupportedOps, IMUsedOps, InsufficientStorageOps, InternalServerErrorOps, LengthRequiredOps, LockedOps, LoopDetectedOps, MisdirectedRequestOps, MovedPermanentlyOps, MultiStatusOps, MultipleChoicesOps, NetworkAuthenticationRequiredOps, NonAuthoritativeInformationOps, NotAcceptableOps, NotExtendedOps, NotFoundOps, NotImplementedOps, OkOps, PartialContentOps, PayloadTooLargeOps, PaymentRequiredOps, PermanentRedirectOps, PreconditionFailedOps, PreconditionRequiredOps, ProxyAuthenticationRequiredOps, RangeNotSatisfiableOps, RequestHeaderFieldsTooLargeOps, RequestTimeoutOps, SeeOtherOps, ServiceUnavailableOps, TemporaryRedirectOps, TooEarlyOps, TooManyRequestsOps, UnavailableForLegalReasonsOps, UnprocessableEntityOps, UnsupportedMediaTypeOps, UpgradeRequiredOps, UriTooLongOps, VariantAlsoNegotiatesOps
Ordering
- Alphabetic
- By Inheritance
Inherited
- EntityResponseGenerator
- 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[F, G] to any2stringadd[EntityResponseGenerator[F, G]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (EntityResponseGenerator[F, G], B)
- Implicit
- This member is added by an implicit conversion from EntityResponseGenerator[F, G] to ArrowAssoc[EntityResponseGenerator[F, G]] 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: Header*)(implicit F: Monad[F], w: EntityEncoder[G, A]): F[Response[G]]
- def apply[A](body: G[A])(implicit F: Monad[F], w: EntityEncoder[G, A]): F[Response[G]]
- def apply(headers: Header*)(implicit F: Applicative[F]): F[Response[G]]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
ensuring(cond: (EntityResponseGenerator[F, G]) ⇒ Boolean, msg: ⇒ Any): EntityResponseGenerator[F, G]
- Implicit
- This member is added by an implicit conversion from EntityResponseGenerator[F, G] to Ensuring[EntityResponseGenerator[F, G]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (EntityResponseGenerator[F, G]) ⇒ Boolean): EntityResponseGenerator[F, G]
- Implicit
- This member is added by an implicit conversion from EntityResponseGenerator[F, G] to Ensuring[EntityResponseGenerator[F, G]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): EntityResponseGenerator[F, G]
- Implicit
- This member is added by an implicit conversion from EntityResponseGenerator[F, G] to Ensuring[EntityResponseGenerator[F, G]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): EntityResponseGenerator[F, G]
- Implicit
- This member is added by an implicit conversion from EntityResponseGenerator[F, G] to Ensuring[EntityResponseGenerator[F, G]] 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[F, G] to StringFormat[EntityResponseGenerator[F, G]] 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[F, G], B)
- Implicit
- This member is added by an implicit conversion from EntityResponseGenerator[F, G] to ArrowAssoc[EntityResponseGenerator[F, G]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
Inherited from ResponseGenerator
Value Members
-
abstract
def
status: Status
- Definition Classes
- ResponseGenerator
Inherited from Any
Value Members
-
abstract
def
getClass(): Class[_]
- Definition Classes
- Any
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
equals(arg0: Any): Boolean
- Definition Classes
- Any
-
def
hashCode(): Int
- Definition Classes
- Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
toString(): String
- Definition Classes
- Any
Inherited by implicit conversion any2stringadd from EntityResponseGenerator[F, G] to any2stringadd[EntityResponseGenerator[F, G]]
Value Members
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from EntityResponseGenerator[F, G] to any2stringadd[EntityResponseGenerator[F, G]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
Inherited by implicit conversion StringFormat from EntityResponseGenerator[F, G] to StringFormat[EntityResponseGenerator[F, G]]
Value Members
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from EntityResponseGenerator[F, G] to StringFormat[EntityResponseGenerator[F, G]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
Inherited by implicit conversion Ensuring from EntityResponseGenerator[F, G] to Ensuring[EntityResponseGenerator[F, G]]
Value Members
-
def
ensuring(cond: (EntityResponseGenerator[F, G]) ⇒ Boolean, msg: ⇒ Any): EntityResponseGenerator[F, G]
- Implicit
- This member is added by an implicit conversion from EntityResponseGenerator[F, G] to Ensuring[EntityResponseGenerator[F, G]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (EntityResponseGenerator[F, G]) ⇒ Boolean): EntityResponseGenerator[F, G]
- Implicit
- This member is added by an implicit conversion from EntityResponseGenerator[F, G] to Ensuring[EntityResponseGenerator[F, G]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): EntityResponseGenerator[F, G]
- Implicit
- This member is added by an implicit conversion from EntityResponseGenerator[F, G] to Ensuring[EntityResponseGenerator[F, G]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): EntityResponseGenerator[F, G]
- Implicit
- This member is added by an implicit conversion from EntityResponseGenerator[F, G] to Ensuring[EntityResponseGenerator[F, G]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
Inherited by implicit conversion ArrowAssoc from EntityResponseGenerator[F, G] to ArrowAssoc[EntityResponseGenerator[F, G]]
Value Members
-
def
->[B](y: B): (EntityResponseGenerator[F, G], B)
- Implicit
- This member is added by an implicit conversion from EntityResponseGenerator[F, G] to ArrowAssoc[EntityResponseGenerator[F, G]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
def
→[B](y: B): (EntityResponseGenerator[F, G], B)
- Implicit
- This member is added by an implicit conversion from EntityResponseGenerator[F, G] to ArrowAssoc[EntityResponseGenerator[F, G]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
Ungrouped
-
abstract
def
getClass(): Class[_]
- Definition Classes
- Any
-
abstract
def
status: Status
- Definition Classes
- ResponseGenerator
-
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[F, G] to any2stringadd[EntityResponseGenerator[F, G]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (EntityResponseGenerator[F, G], B)
- Implicit
- This member is added by an implicit conversion from EntityResponseGenerator[F, G] to ArrowAssoc[EntityResponseGenerator[F, G]] 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: Header*)(implicit F: Monad[F], w: EntityEncoder[G, A]): F[Response[G]]
- def apply[A](body: G[A])(implicit F: Monad[F], w: EntityEncoder[G, A]): F[Response[G]]
- def apply(headers: Header*)(implicit F: Applicative[F]): F[Response[G]]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
ensuring(cond: (EntityResponseGenerator[F, G]) ⇒ Boolean, msg: ⇒ Any): EntityResponseGenerator[F, G]
- Implicit
- This member is added by an implicit conversion from EntityResponseGenerator[F, G] to Ensuring[EntityResponseGenerator[F, G]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (EntityResponseGenerator[F, G]) ⇒ Boolean): EntityResponseGenerator[F, G]
- Implicit
- This member is added by an implicit conversion from EntityResponseGenerator[F, G] to Ensuring[EntityResponseGenerator[F, G]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): EntityResponseGenerator[F, G]
- Implicit
- This member is added by an implicit conversion from EntityResponseGenerator[F, G] to Ensuring[EntityResponseGenerator[F, G]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): EntityResponseGenerator[F, G]
- Implicit
- This member is added by an implicit conversion from EntityResponseGenerator[F, G] to Ensuring[EntityResponseGenerator[F, G]] 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[F, G] to StringFormat[EntityResponseGenerator[F, G]] 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[F, G], B)
- Implicit
- This member is added by an implicit conversion from EntityResponseGenerator[F, G] to ArrowAssoc[EntityResponseGenerator[F, G]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc