web library

Jetleaf Web sub-library

This sub-library defines the web API surface of the jetleaf_web package.

Importing package:jetleaf_web/web.dart exposes only the web-related abstractions of Jetleaf, including request handling, view rendering, error pages, events, URI utilities, and web configuration.

This library is intentionally scoped and does not expose internal implementation details or non-web modules.

Classes

ConfigurableWebServer
Extension of WebServer providing mutator methods for host and port configuration prior to startup.
ErrorPage
Represents an error page configuration for handling HTTP error responses.
ErrorPageRegistrar
A configurator interface for programmatically registering error pages.
ErrorPageRegistry
A mutable registry for error pages that supports building a collection through programmatic configuration.
ErrorPages
Central registry and manager for error page pods in the Jetleaf framework.
HttpEvent
Base class for all HTTP-related application events within the JetLeaf Web subsystem.
HttpUpgradedEvent
Event published when an HTTP connection is upgraded to another protocol.
PageView
Concrete implementation of View with fluent builder-style APIs for convenient view configuration in controller methods.
RedirectView
Represents a redirect-based view that instructs the framework to issue an HTTP redirect to the specified target path or URL.
Renderable
Marker interface for components capable of rendering content in response to HTTP requests.
RenderableView
Abstract base class for view components that render content directly as strings.
RenderableWebView
Abstract base class for view components that use template-based rendering with models.
ServerEvent
Base class for all web server lifecycle events.
ServerStartedEvent
ServerStartedEvent
ServerStartingEvent
ServerStartingEvent
ServerStoppedEvent
ServerStoppedEvent
ServerStoppingEvent
ServerStoppingEvent
SimpleUriBuilder
A lightweight implementation of UriBuilder that constructs URIs from string templates, variable placeholders, and optional query parameters.
UriBuilder
Defines the contract for building Uri instances from templates, path variables, and query parameters.
View
Represents a renderable web view with template path, redirect behavior, HTTP status codes, and model attributes for dynamic content rendering.
ViewContext
Provides access to HTTP request data and context for view rendering components.
WebConfigurer
Defines the configuration contract for JetLeaf’s web layer.
WebRequest
Represents a unified abstraction over an HTTP request–response interaction.
WebServer
Defines the base contract for a JetLeaf-compatible web server.
WebServerFactory
A factory interface responsible for creating WebServer instances.
WebViewContext
Internal implementation of ViewContext for JetLeaf’s web-based rendering system.