Extends: Node
A routable HTTP server for Godot
var bind_address: String = "*"The ip address to bind the server to. Use * for all IP addresses [*]
var port: int = 8080The port to bind the server to. [8080]
var server_identifier: String = "GodotTPD"The server identifier to use when responding to requests [GodotTPD]
func _init(_logging: bool = false) -> voidCompile the required regex
func register_router(path: String, router: HttpRouter)Register a new router to handle a specific path
- path: The path the router will handle. Supports a regular expression and the group matches will be available in HttpRequest.query_match.
- router: The HttpRouter that will handle the request
func start()Start the server
func stop()Stop the server and disconnect all clients