trait Request[+Data] extends AnyRef
Base super simple trait for all HTTP requests in AckCord.
- Data
The parsed response type.
- Self Type
- Request[Data]
- Source
- requestObjs.scala
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- Request
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Abstract Value Members
- abstract def bodyForLogging: Option[String]
Returns the body of this Request for use in logging.
- abstract def hasPermissions(implicit c: CacheSnapshot): Boolean
Check if a client has the needed permissions to execute this request.
- abstract def parseResponse(entity: ResponseEntity)(implicit system: ActorSystem[Nothing]): Future[Data]
A flow that can be used to parse the responses from this request.
- abstract def requestBody: RequestEntity
The body of the request to send.
- abstract def route: RequestRoute
The router for this request.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def collect[B](f: PartialFunction[Data, B]): Request[B]
Map the result if the function is defined for the response data.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def extraHeaders: Seq[HttpHeader]
All the extra headers to send with this request.
- def filter(f: (Data) => Boolean): Request[Data]
Filter the response of sending this request.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- val identifier: UUID
An unique identifier to track this request from creation to answer.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def map[B](f: (Data) => B): Request[B]
Map the result of sending this request.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def transformResponse[B](f: (ExecutionContext) => (Future[Data]) => Future[B]): Request[B]
Transform the response of this request as a flow.
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])