Houdini 20.0 hwebserver

hwebserver.requestShutdown function

Tells Houdini’s web server to shut down after serving all open requests.


Call this function from a URL handler or API function to tell the server to shut down when it is finished handling all active requests. This function returns immediately.

You can use this function along with a supervisor process that restarts hython to periodically free up the memory consumed by the Houdini session.



Starting and Stopping

Handling Web Requests and Returning Responses


  • WebSocket

    Base class for WebSocket support with the embedded server.

  • hwebserver.webSocket

    Decorator for registering WebSocket classes with Houdini’s web server.

API Calls

  • hwebserver.apiFunction

    Decorator for functions that can be called through an API endpoint on Houdini’s web server, returning JSON or binary responses.

  • hwebserver.APIError

    Raise this exception in apiFunction handlers to indicate an error.