DEPLOY FAQ HACKING LICENSE NEWS README SIGNALS Sandbox Static_Files Summary TUNING Test_Suite rainbows_1 vs_Unicorn
Rainbows ActorSpawn AppPool Base Configurator Coolio CoolioThreadPool CoolioThreadSpawn DevFdResponse Epoll EventMachine FiberPool FiberSpawn MaxBody NeverBlock Rev RevFiberSpawn RevThreadPool RevThreadSpawn Revactor Sendfile ServerToken StreamResponseEpoll ThreadPool ThreadSpawn ThreadTimeout WriterThreadPool WriterThreadSpawn XEpoll XEpollThreadPool XEpollThreadSpawn


::new #call

class Rainbows::ServerToken

An optional middleware to proudly display your usage of Rainbows! in the "Server:" response header. This means you can help tell the world you're using Rainbows! and spread fun and joy all over the Internet!

------ in your ------
require 'rainbows/server_token'
require 'rack/lobster'
use Rainbows::ServerToken

If you're nervous about the exact version of Rainbows! you're running, then you can actually specify anything you want:

use Rainbows::ServerToken, "netcat 1.0"

Public Class Methods

new (app, token = Const::RACK_DEFAULTS['SERVER_SOFTWARE']) source
Calls superclass method

Public Instance Methods

call (env) source

Parent:, :token)
Pages Classes Methods

mail archives:
public: / private: