Houdini 19.0 hwebserver

hwebserver.registerASGIApp function

Function used to register a asgi capable application such as django to be used on a path prefix.

registerASGIApp(application=(), path=None, ports=[])

This function allows you to hook in a asgi capable application such as flask or django and use the Houdini web server as the server backend.

import os
import hwebserver
import testsite.asgi

hwebserver.registerWSGIApp(testsite.asgi.application, "/")
hwebserver.run(8000, debug=True)

Note

Currently HTTP is only supported and this feature is currently in Alpha.

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.