MineAuth
Toggle table of contents
VersionPlaceholder
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
MineAuth
api
/
party.morino.mineauth.api.http
/
HttpApi
Http
Api
interface
HttpApi
MineAuthのHTTP APIを定義するインターフェース
Members
Functions
add
Endpoint
Link copied to clipboard
abstract
fun
addEndpoint
(
path
:
String
,
method
:
HttpMethod
,
handler
:
(
HttpRequest
)
->
HttpResponse
)
エンドポイントを追加します
add
Middleware
Link copied to clipboard
abstract
fun
addMiddleware
(
middleware
:
(
HttpRequest
)
->
HttpResponse
?
)
ミドルウェアを追加します
register
Handlers
Link copied to clipboard
abstract
fun
registerHandlers
(
handlerInstance
:
Any
)
クラス内のHTTPハンドラーを登録します