Package io.karatelabs.http
package io.karatelabs.http
-
ClassDescriptionOAuth 2.0 Authorization Code + PKCE Auth Handler.CSRF (Cross-Site Request Forgery) protection utilities.CSRF token object exposed to templates.Default implementation of
HttpClientFactorythat creates a newApacheHttpClientinstance for each call.File-based implementation of SessionStore.Fluent HTTP client API for making HTTP requests from Java code.Factory for creating HttpClient instances.In-memory implementation of SessionStore.Local HTTP server to capture OAuth redirect with authorization code.Callback interface for OAuth 2.0 browser-based authorization.Manages OAuth 2.0 token storage and refresh.Provides protection against path traversal attacks in resource resolution.Exception thrown when a path traversal attempt is detected.PKCE (Proof Key for Code Exchange) code verifier and challenge generator.SameSite cookie attribute values per RFC 6265bis.Applies security headers to HTTP responses to protect against common web vulnerabilities.Configuration for the HTTP server including routing, sessions, and security settings.Server-side context exposed to templates and API handlers.Per-request lifecycle wrapper that provides isolated Engine instances.Main request handler implementing routing for static files, API endpoints, and HTML templates.Exception used internally to signal a redirect.Session state carrier.Interface for session persistence.Server-Sent Events connection wrapping a Netty channel.Handler for Server-Sent Events (SSE) connections.Signal thrown byServerMarkupContext.redirect(String)andServerMarkupContext.switchTemplate(String)to cleanly abort template rendering or API handler evaluation when a redirect or a template switch is requested.Protocol-agnostic WebSocket client built on Netty.Netty handler for WebSocket client connections.Configuration for WebSocket client connections using builder pattern.WebSocket connection wrapping a Netty channel.Exception type for WebSocket errors with cause differentiation.Immutable wrapper for WebSocket frames (text, binary, control frames).Handler for WebSocket upgrade requests.