Package-level declarations
Types
Static class interface which equips a Micronaut application with extra initialization features powered by Elide; to use, simply enforce that your entrypoint object complies with this interface.
Typealias for a registered string which is used as an Asset Module ID.
Raw streamed file wrapper, after unwrapping the type.
Raw streamed asset response, used internally for assets.
Raw bytes body type used internally by Elide.
Raw bytes response typealias used internally by Elide.
Describes a handler object which can respond to a request with a given ResponseBody type; these throw-away handlers are typically spawned by utility functions to create a context where rendering can take place.
Affixed to classes which initialize Elide server instances.
Raw streamed file alias, used internally for assets.
Raw streamed file response, used internally for assets with a type attached.
Describes the expected interface for a streaming response rendered via co-routines.
Describes the expected interface for a response rendering object which leverages co-routines.
Functions
Generate a StreamedAssetResponse which serves an asset embedded within the application, and specified by the provided block; request will be considered when producing the response.
Serve an application asset file which is embedded in the application JAR as a registered server asset, from the application resource path /assets
.
Responds to a client with an HTML response, using specified block to build the CSS document via Kotlin's CSS DSL.
Responds to a client with an HTML response, using specified block to build an HTML page via Kotlin's HTML DSL.
Serve a static script asset embedded within the application, based on the provided block, which should customize the serving of the script and declare a module ID.
Serve a static script asset embedded within the application, based on the provided moduleId, and customizing the response based on the provided request.
Generates a <body>
script link from the provided asset, optionally including the specified attrs, etc.
Generates a <body>
script link from the provided handler uri, optionally including the specified attrs.
Generates a <head>
script link from the provided handler uri, optionally including the specified attrs.
Load and serve a JavaScript bundle server-side, executing it within the context of an isolated GraalVM JavaScript runtime; then, collect the output and return it as an HTTP response, within the provided HTML builder, which will be used to render the initial page frame.
Serve a static file which is embedded in the application JAR, at the path /static/[file]
.
Serve a static stylesheet asset embedded within the application, based on the provided block, which should customize the serving of the document and declare a module ID.
Serve a static stylesheet asset embedded within the application, based on the provided moduleId, and customizing the response based on the provided request.