twilight
twilight copied to clipboard
feat(gateway)!: move http support behind `twilight_http` feature
HTTP support allows the gateway to validate its token and for clusters to retrieve Discord's recommended shard count.
This PR allows for disabling HTTP by not specifying twilight-http
as a feature[^1] which is useful for bots not requiring HTTP or for building gateway proxies.
TLS no longer pulling in twilight-http
is done in #1769
[^1]: enabled by default
Related to, but does not fully resolve (as TLS (required for non-proxies) pulls in twilight_http
[^1]) #1514
[^1]: No longer the case as of 8dab88fa694cb74202ba2eaba138df24bc44bad5
Will be rebased on #1809
Ready for rebase.