1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! HTTP/HTTPS tracker protocol implementation.
//!
//! This module implements the BitTorrent tracker protocol over HTTP/HTTPS
//! as specified in BEP 3 (The BitTorrent Protocol Specification) and
//! BEP 23 (Tracker Returns Compact Peer Lists).
//!
//! # Supported Endpoints
//!
//! - `/announce` - Handle peer announcements
//! - `/announce/{key}` - Announce with API key authentication
//! - `/announce/{key}/{passkey}` - Announce with user passkey (private tracker)
//! - `/scrape` - Query torrent statistics
//! - `/scrape/{key}` - Scrape with API key authentication
//!
//! # Features
//!
//! - Multiple concurrent HTTP/HTTPS server instances
//! - Compact peer list responses (BEP 23)
//! - IPv4 and IPv6 peer support (BEP 7)
//! - API key and user passkey authentication
//! - X-Real-IP header support for proxied requests
//! - Configurable SSL/TLS with hot-reload support
//!
//! # Response Format
//!
//! Responses are bencoded dictionaries as per the BitTorrent specification.
/// Enumerations for HTTP tracker operations.
/// Data structures for HTTP request/response handling.
/// Implementation blocks for HTTP service components.
/// Type aliases for HTTP module.
/// Core HTTP service implementation.