http
library
Classes
BodyParser
Handles parsing of HTTP request bodies.
Controller
Base controller class for handling HTTP requests.
CookieManager
Static helper for backward compatibility or direct usage
Cookies
Cookies Manager
FormRequest
FormRequest provides a clean, reusable way to encapsulate validation logic,
authorization checks, and data preparation for HTTP requests.
HttpRequestParser
HttpRequestProcessor
Handles routing, middleware, and invoking the route handler.
MiddlewarePipeline
Enhanced middleware pipeline with priority-based execution and better error handling.
ParsedHttpRequest
Request
Represents an HTTP request within the Khadem framework.
RequestContext
Provides access to the current HTTP request within a request processing zone.
Provides efficient HTTP header access with caching.
RequestInput
Provides convenient input access for request body, files, and query data.
RequestMetadata
Provides HTTP request metadata and utilities.
RequestParams
Manages request parameters and custom attributes.
RequestSession
Manages HTTP sessions for the Khadem framework.
RequestValidator
Handles validation of request data against specified rules.
Response
Represents the HTTP response sent back to the client.
ResponseBody
Handles HTTP response body content with support for various formats.
ResponseContext
Provides access to the current HTTP response within a request processing zone.
Handles HTTP response headers with a clean, consistent API.
ResponseRenderer
Handles view rendering and template responses.
ResponseStatus
Handles HTTP response status codes with convenient methods and constants.
ResponseWrapper
Wraps the response and captures the response data for caching or inspection.
Server
Core HTTP server for Khadem.
ServerCluster
High-performance cluster-aware HTTP server with supervision and auto-restart.
ServerContext
Holds the matched route and request/response pair for processing.
ServerLifecycle
ServerMiddleware
Handles middleware management for the server.
ServerStatic
Handles static file serving configuration for the server.
ServerStaticHandler
Responsible for serving static files from a given directory.
UploadedFile
Represents an uploaded file in a multipart request.
Typedefs
RequestHandler
= FutureOr <void > Function(Request request , Response response )
A handler is a function that takes in a Request and Response and performs
any necessary logic to complete the request. This can include database
interactions, business logic, or any other type of computation.