trait Request[+Data, Ctx] extends MaybeRequest[Data, Ctx]

Base super simple trait for all HTTP requests in AckCord.

Data

The parsed response type.

Self Type
Request[Data, Ctx]
Source
requestObjs.scala
Linear Supertypes
MaybeRequest[Data, Ctx], AnyRef, Any
Known Subclasses
GetApplicationIconImage, GetCustomEmojiImage, GetDefaultUserAvatarImage, GetGuildIconImage, GetGuildSplashImage, GetGuildWidgetImage, GetUserAvatarImage, ImageRequest, AddGuildMember, AddGuildMemberRole, AddPinnedChannelMessages, BaseRESTRequest, BeginGuildPrune, BulkDeleteMessages, CreateChannelInvite, CreateDm, CreateGroupDm, CreateGuild, CreateGuildBan, CreateGuildChannel, CreateGuildEmoji, CreateGuildIntegration, CreateGuildRole, CreateMessage, CreateReaction, CreateWebhook, DeleteAllReactions, DeleteChannelPermission, DeleteCloseChannel, DeleteGuild, DeleteGuildEmoji, DeleteGuildIntegration, DeleteGuildRole, DeleteInvite, DeleteMessage, DeleteOwnReaction, DeletePinnedChannelMessages, DeleteUserReaction, DeleteWebhook, DeleteWebhookWithToken, EditChannelPermissions, EditMessage, GetChannel, GetChannelInvites, GetChannelMessage, GetChannelMessages, GetChannelWebhooks, GetCurrentUser, GetCurrentUserGuilds, GetGuild, GetGuildAuditLog, GetGuildBan, GetGuildBans, GetGuildChannels, GetGuildEmbed, GetGuildEmoji, GetGuildIntegrations, GetGuildInvites, GetGuildMember, GetGuildPruneCount, GetGuildRoles, GetGuildVanityUrl, GetGuildVoiceRegions, GetGuildWebhooks, GetInvite, GetPinnedMessages, GetReactions, GetUser, GetUserConnections, GetWebhook, GetWebhookWithToken, GuildMemberRequest, GuildPrune, LeaveGuild, ListGuildEmojis, ListGuildMembers, ListVoiceRegions, ModifyBotUsersNick, ModifyChannel, ModifyGuild, ModifyGuildChannelPositions, ModifyGuildEmbed, ModifyGuildEmoji, ModifyGuildIntegration, ModifyGuildMember, ModifyGuildRole, ModifyGuildRolePositions, ModifyWebhook, ModifyWebhookWithToken, NoNiceResponseReasonRequest, NoNiceResponseRequest, NoParamsNiceResponseReasonRequest, NoParamsNiceResponseRequest, NoParamsReasonRequest, NoParamsRequest, NoParamsResponseReasonRequest, NoParamsResponseRequest, NoResponseReasonRequest, NoResponseRequest, RESTRequest, ReasonRequest, RemoveGuildBan, RemoveGuildMember, RemoveGuildMemberRole, SyncGuildIntegration, TriggerTypingIndicator
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Request
  2. MaybeRequest
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def bodyForLogging: Option[String]

    Returns the body of this Request for use in logging.

  2. abstract def context: Ctx

    The context to send with this request.

    The context to send with this request.

    Definition Classes
    MaybeRequest
  3. abstract def hasPermissions[F[_]](implicit c: CacheSnapshot[F], F: Monad[F]): F[Boolean]

    Check if a client has the needed permissions to execute this request.

  4. abstract def parseResponse(parallelism: Int)(implicit system: ActorSystem): Flow[ResponseEntity, Data, NotUsed]

    A flow that can be used to parse the responses from this request.

  5. abstract def requestBody: RequestEntity

    The body of the request to send.

  6. abstract def route: RequestRoute

    The router for this request.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. def collect[B](f: PartialFunction[Data, B]): Request[B, Ctx]

    Map the result if the function is defined for the response data.

  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def extraHeaders: Seq[HttpHeader]

    All the extra headers to send with this request.

  10. def filter(f: (Data) ⇒ Boolean): Request[Data, Ctx]

    Filter the response of sending this request.

  11. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def map[B](f: (Data) ⇒ B): Request[B, Ctx]

    Map the result of sending this request.

  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. def transformResponse[B](f: (Flow[ResponseEntity, Data, NotUsed]) ⇒ Flow[ResponseEntity, B, NotUsed]): Request[B, Ctx]

    Transform the response of this request as a flow.

  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  25. def withContext[NewCtx](newContext: NewCtx): Request[Data, NewCtx]

    Updates the context of this request.

Inherited from MaybeRequest[Data, Ctx]

Inherited from AnyRef

Inherited from Any

Ungrouped