trait LocationResponseGenerator[F[_]] extends EntityResponseGenerator[F]
Helper for the generation of a org.http4s.Response which may contain a Location header and may contain a body.
A 300, 301, 302, 303, 307 and 308 status SHOULD contain a Location header, which
distinguishes this from other EntityResponseGenerator
s.
- Source
- ResponseGenerator.scala
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- LocationResponseGenerator
- 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 LocationResponseGenerator[F] to any2stringadd[LocationResponseGenerator[F]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (LocationResponseGenerator[F], B)
- Implicit
- This member is added by an implicit conversion from LocationResponseGenerator[F] to ArrowAssoc[LocationResponseGenerator[F]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
- def apply[A](location: Location, body: A, headers: Header*)(implicit F: Monad[F], w: EntityEncoder[F, A]): F[Response[F]]
- def apply(location: Location, headers: Header*)(implicit F: Applicative[F]): F[Response[F]]
-
def
apply[A](body: A, headers: Header*)(implicit F: Monad[F], w: EntityEncoder[F, A]): F[Response[F]]
- Definition Classes
- EntityResponseGenerator
-
def
apply[A](body: F[A])(implicit F: Monad[F], w: EntityEncoder[F, A]): F[Response[F]]
- Definition Classes
- EntityResponseGenerator
-
def
apply(headers: Header*)(implicit F: Applicative[F]): F[Response[F]]
- Definition Classes
- EntityResponseGenerator
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
ensuring(cond: (LocationResponseGenerator[F]) ⇒ Boolean, msg: ⇒ Any): LocationResponseGenerator[F]
- Implicit
- This member is added by an implicit conversion from LocationResponseGenerator[F] to Ensuring[LocationResponseGenerator[F]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (LocationResponseGenerator[F]) ⇒ Boolean): LocationResponseGenerator[F]
- Implicit
- This member is added by an implicit conversion from LocationResponseGenerator[F] to Ensuring[LocationResponseGenerator[F]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): LocationResponseGenerator[F]
- Implicit
- This member is added by an implicit conversion from LocationResponseGenerator[F] to Ensuring[LocationResponseGenerator[F]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): LocationResponseGenerator[F]
- Implicit
- This member is added by an implicit conversion from LocationResponseGenerator[F] to Ensuring[LocationResponseGenerator[F]] 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 LocationResponseGenerator[F] to StringFormat[LocationResponseGenerator[F]] 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): (LocationResponseGenerator[F], B)
- Implicit
- This member is added by an implicit conversion from LocationResponseGenerator[F] to ArrowAssoc[LocationResponseGenerator[F]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
Deprecated Value Members
-
def
apply(location: Uri)(implicit F: Applicative[F]): F[Response[F]]
- Annotations
- @deprecated
- Deprecated
(Since version 0.18.0-M2) Use
apply(Location(location))
instead