{"repo":"twilight-rs/http-proxy","free":true,"listed":false,"github":"https://github.com/twilight-rs/http-proxy","clone":"git clone https://github.com/twilight-rs/http-proxy.git","description":"Ratelimited Discord HTTP API proxy.","language":"Rust","stars":124,"topics":["discord-api","discord-bot","discord","http-proxy","ratelimiter","rust","twilight-rs"],"license":"ISC","category":"chat-messaging","readme_excerpt":"twilight-http-proxy http-proxy is a ratelimited HTTP proxy in front of the Discord API, making use of [twilight]. Use This proxy is not a \"real\" HTTP CONNECT TCP proxy, it instead mocks the Discord API. Using it is as easy as changing the base of all routes from discord.com to localhost:3000 , like so: The proxy actively supports routes from API v10, but will also try to request the corresponding routes on older or newer API versions if you so request in the URL. twilight http natively supports using twilight http proxy , so you can use it like this: This will use the running proxy, skip the ratelimiter (since the proxy does ratelimiting itself), and will request over HTTP. If you are using a different Discord API client, make sure that you are not ratelimiting outgoing requests, because the proxy will do this instead. Very short HTTP client timeouts may also cause issues with longer ratelimits. Multiple applications By default, the proxy will use the token provided in the DISCORD TOKEN enviroment variable for all requests. You can bypass this by providing a different token in the Authorization header yourself. The proxy will keep track of ratelimits on a per-token basis, so using multiple applications is as easy as sending the header alongside your requests. You can configure how long the proxy stores ratelimit information with these enviroment variables: - CLIENT DECAY TIMEOUT (in seconds; defaults to 1 hour) sets the timeout after which ratelimiting information will be dro","default_branch":null,"files":null,"tree":[],"storefront":"/r/twilight-rs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/twilight-rs/http-proxy/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}