@rabbit-company/web@0.14.0Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
High-performance web framework
Context object passed to middleware and route handlers containing request data and helper methods. The context provides a convenient API for handling common web operations like parsing request bodies, setting response headers, and managing application state.
Callback function invoked when the server starts listening.
HTTP methods supported by the framework.
Middleware function type that processes requests and can return responses. Middleware functions receive a context object and a next function to call the next middleware in the chain.
Internal representation of middleware with matching logic. Used to determine which middleware should run for a given request.
Function type for calling the next middleware in the chain. Returns a Promise that resolves to a Response or void.
Interface representing a node in the trie data structure used for efficient route matching. Each node can have static children, parameter children, or wildcard children.
High-performance web framework with trie-based routing, middleware support, and extensive caching.
- addMiddleware
- addRoute
- addRouteToTrie
- clear
- clearCaches
- createContext
- createNotFoundResponse
- delete
- errorHandler
- generateId
- get
- getCachedMatcher
- getMethodMiddlewares
- getMiddlewares
- getPathSegments
- getRoutes
- handle
- handleBun
- handleCloudflare
- handleDeno
- handleNode
- handleWithIp
- head
- idCounter
- listen
- match
- matcherCache
- methodMiddlewareCache
- middlewares
- notFoundHandler
- onError
- onNotFound
- options
- parseUrl
- patch
- post
- put
- rebuildTrie
- removeMiddleware
- removeMiddlewareBy
- removeRoute
- removeRoutesBy
- roots
- route
- routeMatchCache
- routes
- scope
- segmentCache
- urlCache
- use