unmbt/ciallo/core does not have a README file
pub(open) trait CapabilityBundle {
fn meta(Self) -> PluginMeta
fn install(Self, app : App) -> Unit raise AppBuildError
}pub(open) trait FromParam {
fn from_param(name : String, raw : StringView) -> Self raise ValidationError
}impl IntoResponse for Stringimpl IntoResponse for Bytesimpl IntoResponse for Jsonimpl IntoResponse for NoContentimpl IntoResponse for Responsepub(all) suberror AppBuildError {
DuplicateRoute(meth~ : Method, path~ : String, loc~ : SourceLoc?)
AmbiguousParam(path~ : String, existing~ : String, incoming~ : String, loc~ : SourceLoc?)
InvalidPattern(pattern~ : String, reason~ : String, loc~ : SourceLoc?)
DuplicateProvider(key_name~ : String, loc~ : SourceLoc?)
DuplicateOperationId(operation_id~ : String, routes~ : (String, String))
AlreadyFrozen(loc~ : SourceLoc?)
} derive(Debug)impl Eq for AppBuildErrorpub(all) suberror HttpError {
BadRequest(String, loc~ : SourceLoc?)
Unauthorized(String, loc~ : SourceLoc?)
Forbidden(String, loc~ : SourceLoc?)
NotFound(String, loc~ : SourceLoc?)
MethodNotAllowed(Array[Method], loc~ : SourceLoc?)
PayloadTooLarge(Int64, loc~ : SourceLoc?)
UnsupportedMediaType(String, loc~ : SourceLoc?)
UnprocessableEntity(Array[ValidationIssue], loc~ : SourceLoc?)
TooManyRequests(String, loc~ : SourceLoc?)
InternalError(String, loc~ : SourceLoc?)
Custom(status~ : Int, code~ : String, message~ : String, extensions~ : Map[String, Json]?, loc~ : SourceLoc?)
}fn HttpError::to_problem(self : HttpError, trace_id? : String, instance? : String, debug? : Bool) -> ProblemDetails#callsite(autofill(loc))
fn HttpError::unprocessable(issues : Array[ValidationIssue], loc~ : SourceLoc) -> HttpErrorpub struct App {
// private fields
}fn App::delete(self : App, path : StringView, options? : RouteOptions, handler : async (Context) -> Response) -> App raise AppBuildErrorfn[Resp : ToJson + Schema] App::delete_typed(self : App, path : StringView, status? : Int, options? : RouteOptions, handler : async (Context) -> Resp) -> App raise AppBuildErrorfn App::get(self : App, path : StringView, options? : RouteOptions, handler : async (Context) -> Response) -> App raise AppBuildErrorfn[Frame : ToJson + Schema] App::get_sse_typed(self : App, path : StringView, options? : RouteOptions, handler : async (Context) -> (async () -> TypedSseEvent[Frame]?)) -> App raise AppBuildErrorfn[Resp : ToJson + Schema] App::get_typed(self : App, path : StringView, status? : Int, options? : RouteOptions, handler : async (Context) -> Resp) -> App raise AppBuildErrorfn App::guard_group(self : App, prefix? : String, before_handle? : Array[async (Context) -> Response?], params_schema? : SchemaNode, query_schema? : SchemaNode, bearer_auth? : Bool, configure : (App) -> Unit raise AppBuildError) -> App raise AppBuildErrorfn App::on_trace(self : App, scope? : Scope, listener : (TraceSummary) -> Unit) -> App raise AppBuildErrorfn App::patch(self : App, path : StringView, options? : RouteOptions, handler : async (Context) -> Response) -> App raise AppBuildErrorfn[Req : FromJson + Schema, Resp : ToJson + Schema] App::patch_typed(self : App, path : StringView, status? : Int, options? : RouteOptions, handler : async (Context, Req) -> Resp) -> App raise AppBuildErrorfn App::post(self : App, path : StringView, options? : RouteOptions, handler : async (Context) -> Response) -> App raise AppBuildErrorfn[Req : FromJson + Schema, Item : ToJson + Schema] App::post_ndjson_typed(self : App, path : StringView, options? : RouteOptions, handler : async (Context, Req) -> (async () -> Item?)) -> App raise AppBuildErrorfn[Req : FromJson + Schema, Frame : ToJson + Schema] App::post_sse_typed(self : App, path : StringView, options? : RouteOptions, handler : async (Context, Req) -> (async () -> TypedSseEvent[Frame]?)) -> App raise AppBuildErrorfn[Req : FromJson + Schema, Resp : ToJson + Schema] App::post_typed(self : App, path : StringView, status? : Int, options? : RouteOptions, handler : async (Context, Req) -> Resp) -> App raise AppBuildErrorfn[T] App::provide(self : App, key : ContextKey[T], value : T, allow_override? : Bool) -> App raise AppBuildErrorfn App::put(self : App, path : StringView, options? : RouteOptions, handler : async (Context) -> Response) -> App raise AppBuildErrorfn[Req : FromJson + Schema, Resp : ToJson + Schema] App::put_typed(self : App, path : StringView, status? : Int, options? : RouteOptions, handler : async (Context, Req) -> Resp) -> App raise AppBuildErrorfn App::route(self : App, meth : Method, path : StringView, options? : RouteOptions, handler : async (Context) -> Response) -> App raise AppBuildErrorfn AppOptions::AppOptions(prefix? : String, debug? : Bool, default_max_body_bytes? : Int64, strict_trailing_slash_redirect? : Bool, default_sse_heartbeat_ms? : Int?) -> AppOptionspub struct Context {
// private fields
}impl FromJson for ProblemDetailsimpl ToJson for ProblemDetailspub(all) struct RouteOptions {
operation_id : String?
status : Int?
summary : String?
description : String?
tags : Array[String]
deprecated : Bool
max_body_bytes : Int64?
sse_heartbeat_ms : Int?
params_schema : SchemaNode?
query_schema : SchemaNode?
body_schema : SchemaNode?
response_schema : SchemaNode?
response_kind : ResponseKind?
error_responses : Array[ResponseSpec]
bearer_auth : Bool
allow_sparse_fields : Bool
before_handle : Array[async (Context) -> Response?]
after_handle : Array[async (Context, Response) -> Response]
}fn RouteOptions::RouteOptions(operation_id? : String, status? : Int, summary? : String, description? : String, tags? : Array[String], deprecated? : Bool, max_body_bytes? : Int64, sse_heartbeat_ms? : Int, params_schema? : SchemaNode, query_schema? : SchemaNode, body_schema? : SchemaNode, response_schema? : SchemaNode, response_kind? : ResponseKind, error_responses? : Array[ResponseSpec], bearer_auth? : Bool, allow_sparse_fields? : Bool, before_handle? : Array[async (Context) -> Response?], after_handle? : Array[async (Context, Response) -> Response]) -> RouteOptionspub(all) struct TraceEvent {
phase : LifecyclePhase
start_micros : Int64
end_micros : Int64
duration_micros : Int64
} derive(Eq, Debug)pub(all) struct TraceSummary {
meth : Method
path : String
pattern : String?
status : Int
total_micros : Int64
events : Array[TraceEvent]
} derive(Eq, Debug)Install
Download zipCross-runtime MoonBit web framework with explicit 9-stage lifecycle, scoped encapsulation, typed routes, schema normalization, and OpenAPI 3.1