Package-level declarations

Types

Link copied to clipboard
open class Http : JsAny

Node.js HTTP class.

Link copied to clipboard
object http : Http

Node.js HTTP module.

Link copied to clipboard
class IncomingMessage : JsAny

Node.js HTTP server incoming message.

Link copied to clipboard
class NodeProcess : JsAny

Node.js HTTP server.

Link copied to clipboard
class Server : JsAny

Node.js HTTP server.

Link copied to clipboard
class ServerResponse : JsAny

Node.js HTTP server server response.

Functions

Link copied to clipboard

Compress String to encoded URI component.

Link copied to clipboard

Decompress encoded URI component to String.

Link copied to clipboard

Get a command line parameter value.

Link copied to clipboard

Get the context path configured for the SSR engine.

Link copied to clipboard

Get the SSR state from the global window object. This is used to retrieve the state that was serialized on the server side and sent to the client.

inline fun <T> getSsrState(json: Json = Json.Default): T?

Get the SSR state from the global window object and deserialize it to the specified type. This is used to retrieve the state that was serialized on the server side and sent to the client, and then decode it using the provided JSON serializer.

Link copied to clipboard
@Composable
fun IComponent.ssrRouter(initRoute: String = "/", contextPath: String = getContextPath(), active: Boolean = true, stateSerializer: () -> String? = null, routing: RoutingBuilder.(RoutingContext) -> Unit)

A router supporting Server-Side Rendering (SSR).