HTTPServerSettings.rejectConnectionPredicate

Provides a way to reject incoming connections as early as possible.

Allows to ban and unban network addresses and reduce the impact of DOS attacks.

If the callback returns true for a specific NetworkAddress, then all incoming requests from that address will be rejected.

class HTTPServerSettings
RejectConnectionPredicate rejectConnectionPredicate;

Meta