Skip to content
This repository has been archived by the owner on Sep 29, 2021. It is now read-only.

Latest commit

 

History

History
11 lines (6 loc) · 1.17 KB

README.md

File metadata and controls

11 lines (6 loc) · 1.17 KB

TitanCore

TitanCore is a tiny Swift class that can be configured with middleware functions that are called in order when the app method is called.

Language Swift 3 Platforms CircleCI

Functionality

The middleware functions receive a request and response object as input and must return a request and response object as output. There is no requirement that the outputs resemble the inputs in any way; however, it is expected that middlewares behave in a conservative and respectful fashion to their inputs. Middlewares should embrace the single responsibility principle: as a rule, they should only modify one property of either the request or the response. Multiple middlewares are always preferred over single middlewares.

For a more usable framework, which uses Titan and some other helpful libraries., see Titan.