bygri / vapor-gnu-terry-pratchett

Add an `X-Clacks-Overhead` header to Vapor.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GNU Terry Pratchett

'We keep that name moving in the Overhead,' he said, and it seemed to Princess that the wind in the shutter arrays above her blew more forlornly, and the everlasting clicking of the shutters grew more urgent. 'He'd never have wanted to go home. He was a real linesman. His name is in the code, in the wind, in the rigging, and the shutters. Haven't you ever heard the saying "Man's not dead while his name is still spoken"?'

Makes Vapor add an X-Clacks-Overhead header containing the text GNU Terry Pratchett to each response.

See the GNU Terry Pratchett page for more information.

Usage

Just add to your providers:

import Vapor
import VaporGNUTerryPratchett

let drop = Droplet()
try drop.addProvider(VaporGNUTerryPratchett.Provider.self)

About

Add an `X-Clacks-Overhead` header to Vapor.


Languages

Language:Swift 100.0%