twilight icon indicating copy to clipboard operation
twilight copied to clipboard

feat(gateway)!: move http support behind `twilight_http` feature

Open vilgotf opened this issue 2 years ago • 2 comments

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

vilgotf avatar Jun 01 '22 15:06 vilgotf

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

vilgotf avatar Jun 01 '22 15:06 vilgotf

Will be rebased on #1809

vilgotf avatar Jul 18 '22 04:07 vilgotf

Ready for rebase.

7596ff avatar Sep 02 '22 22:09 7596ff