Package net.targetr.wtm3.net.http
package net.targetr.wtm3.net.http
HTTP server connections, message models and application response dispatch.
HttpServer accepts sockets and starts a
virtual-thread HttpHandler for each connection.
The handler detects plain or TLS transport, reads requests, invokes the configured
ResponseGenerator, writes responses and manages
keep-alive connections and protocol upgrades.
HttpRequest,
HttpResponse and
Headers represent HTTP messages and their body
streams. HttpInterception supplies per-request
HttpInterceptor hooks for monitoring the
request/response lifecycle. Subpackages provide concrete responses, upstream
proxying and WebSocket transport; RCWeb routing is implemented by
RootResponder.
- Author:
- Dr Michael Gardiner
-
ClassDescriptionParses, stores and writes HTTP headers using case-insensitive names.Handles an HTTP connection.Supplies a per-request interceptor for capturing HTTP communications.Observes request handling when the response generator implements
HttpInterception.Parses, stores and reads HTTP requests.Parses, stores and writes HTTP responses.Accepts HTTP and HTTPS connections on one port, starting a virtual-threadHttpHandlerfor each socket.Simple interface for generating an HTTP response to an HTTP request.