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

The core of Titan - the microframework for server-side Swift

Notifications You must be signed in to change notification settings

bermudadigitalstudio/TitanCore

Repository files navigation

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.

About

The core of Titan - the microframework for server-side Swift

Resources

Stars

Watchers

Forks

Packages

No packages published