HttpApi

interface HttpApi

MineAuthのHTTP APIを定義するインターフェース

Functions

Link copied to clipboard
abstract fun addEndpoint(path: String, method: HttpMethod, handler: (HttpRequest) -> HttpResponse)

エンドポイントを追加します

Link copied to clipboard
abstract fun addMiddleware(middleware: (HttpRequest) -> HttpResponse?)

ミドルウェアを追加します

Link copied to clipboard
abstract fun registerHandlers(handlerInstance: Any)

クラス内のHTTPハンドラーを登録します