GodotHTTPServer docs

GodotHTTPServer is a production-grade HTTP/HTTPS server that runs natively inside Godot 4.7 or later. Build game servers, REST APIs, dashboards, and file hosts without leaving the engine.

Features

  • Full HTTP/1.1 support for GET, POST, PUT, DELETE, PATCH, HEAD, and OPTIONS.
  • Routing with path parameters, regex constraints, wildcard catch-all routes, and route groups.
  • Middleware chain with global, group, and route scoping.
  • Built-in middleware for CORS, logging, rate limiting, GZIP, Basic/Bearer/API-key auth, sessions, request IDs, and metrics.
  • Type-safe DTO validation for JSON bodies.
  • Cookies and application/x-www-form-urlencoded form parsing.
  • WebSocket support per RFC 6455, including rooms/broadcasts and keep-alive pings.
  • Server-Sent Events for one-way streaming.
  • Static file serving with MIME detection, ETags, ranges, SPA fallback, and precompressed gzip.
  • HTTPS through native TLS.
  • Chunked transfer for inbound requests and outbound responses.
  • Graceful shutdown drain and protocol-correct 100-continue / 413 / 408 / 503 handling.

Start here

  1. Install the addon in Getting started.
  2. Register your first routes in Routes and DTOs.
  3. Explore the reference pages:

License

The addon uses the MIT license. See the LICENSE file in the repository.