One server, three companions you attach as needed
TsgcHTTPRESTServer extends the standard TsgcHTTPServer with CORS handling through CORSOptions, and two properties for optional companions: ServerStats and Tenancy. TsgcHTTPServerStats counts every request by status class, tracks latency minimum, average and maximum, and serves a Prometheus-format /metrics endpoint plus a JSON /health endpoint, with GetEndpointStats for a per-route breakdown. TsgcHTTPServer_Tenancy resolves the caller's tenant from the host name, a path segment, a request header or a JWT claim, and the server's own Tenant property reads the result for the request being served. TsgcHTTPServer_Users is a fourth, free-standing companion: a local account store with AddUser, ValidateCredentials, role tags and salted password hashing, with optional encryption at rest, queried directly from a route handler rather than wired to the server as a property.