Livt packages

Livt.Web

Version 1.0.0

Bounded HTTP routing, request parsing, response encoding, and Ethernet application composition for Livt.

Published files (63)

src/http/IHttpRoute.lvt

namespace Livt.Web.Http

using Livt.Net

/**
 * A selectable leaf or subtree. Select freezes its outcome until End, except
 * NotReady may be retried over the same request. No handler begins in Select.
 * GetMatchedMethods reports the union for path matches when selection yields 405.
 */
interface IHttpRoute : IHttpHandler
{
	/**
	 * Selects over the shared published request without beginning a handler.
	 * NotReady may retry; other outcomes remain frozen until End.
	 */
	fn Select() RouteDispatch

	/**
	 * Returns the supported-method union for matching paths.
	 * This describes route selection, not a prepared response or a wildcard method.
	 */
	fn GetMatchedMethods() HttpAllowedMethods
}