You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the release of Ktor 2.0.0 the old location API was replaced by the new resource API which comes with a lot of advantages. The two most important being
It uses Kotlinx.serialization, so now we can add parameters with _ in them without violating Kotlin naming conventions (as now there is @SerialName
It is now also available to the client and MPP
Consideration
Currently, kord-rest is not entirely dependent on Ktor, you should be able to write your own RequestHandler, which does not use Ktor, however realistically no one is going to do that anyway, and you need to use Ktor for all other parts of Kord already
Challenges
Rate limiting
The existing Route objects are also used for rate limiting, and I am currently not sure whether we can still store all of the rate limiting information
Serialization
Until now, Routes also stored the request method and the body type, this might need to change
The text was updated successfully, but these errors were encountered:
DRSchlaubi
added
on hold
Something is preventing this issue from being resolved
and removed
on hold
Something is preventing this issue from being resolved
labels
Apr 11, 2022
Summary
With the release of Ktor 2.0.0 the old location API was replaced by the new resource API which comes with a lot of advantages. The two most important being
_
in them without violating Kotlin naming conventions (as now there is@SerialName
Consideration
Currently,
kord-rest
is not entirely dependent on Ktor, you should be able to write your own RequestHandler, which does not use Ktor, however realistically no one is going to do that anyway, and you need to use Ktor for all other parts of Kord alreadyChallenges
Rate limiting
The existing Route objects are also used for rate limiting, and I am currently not sure whether we can still store all of the rate limiting information
Serialization
Until now, Routes also stored the request method and the body type, this might need to change
The text was updated successfully, but these errors were encountered: