Houdini 19.0 hwebserver

hwebserver.requestShutdown function

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

requestShutdown()

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.

hwebserver

クラス

開始と停止

ウェブリクエストの処理とレスポンスの返し

ウェブソケット

  • WebSocket

    Base class for WebSocket support with the embedded server.

  • hwebserver.webSocket

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

APIコール

  • 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.