This library currently only supports rate-limiting requests via burst (see Middleware.BurstShaper). It would be nice to have a functional class that is able to spread out requests while respecting the parsed rate limits.
This is the Middleware.SpreadShaper class currently:
namespace BlossomiShymae.RiotBlossom.Middleware
{
internal class SpreadShaper : IShaper
{
public Task UseRequestAsync(ExecuteInfo info, HttpRequestMessage req, Action next, Action<byte[]> hit)
{
throw new NotImplementedException();
}
public Task UseResponseAsync(ExecuteInfo info, HttpResponseMessage res, Action next)
{
throw new NotImplementedException();
}
}
}
My brain is on fire from trying to come up with a solution that isn't scuffed...
This library currently only supports rate-limiting requests via burst (see
Middleware.BurstShaper
). It would be nice to have a functional class that is able to spread out requests while respecting the parsed rate limits.This is the
Middleware.SpreadShaper
class currently:My brain is on fire from trying to come up with a solution that isn't scuffed...