shelf

Shelf interop with Angel. This package lets you run handlers via a custom adapter.

Use the code in this repo to embed existing Angel/shelf apps intoother Angel/shelf applications. This way, you can migrate legacy applications withouthaving to rewrite your business logic.

Usage

This is a compliant shelf adapter that acts as an Angel request handler. You can use it as a middleware,or attach it to individual routes.

You can communicate with Angel:

AngelShelf

AngelShelf is an implementation that wraps shelf requests and responses in theirAngel equivalents. Using it is as simple using as using , or any otherdriver:

You can also use the AngelShelf driver as a shelf middleware - just useangelShelf.middleware instead of angelShelf.handler. When used as a middleware,if the Angel response context is still open after all handlers run (i.e. no routes werematched), the next shelf handler will be called.