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

Methods

::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 config.ru ------
require 'rainbows/server_token'
require 'rack/lobster'
use Rainbows::ServerToken
run Rack::Lobster.new

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: Struct.new(:app, :token)
Pages Classes Methods


mail archives: https://yhbt.net/rainbows-public/
	http://ou63pmih66umazou.onion/rainbows-public/ 
	nntp://news.public-inbox.org/inbox.comp.lang.ruby.rainbows 
	nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.rainbows 
	nntp://news.gmane.io/gmane.comp.lang.ruby.rainbows.general 
public: rainbows-public@yhbt.net
source code: git clone https://yhbt.net/rainbows.git
	torsocks git clone http://ou63pmih66umazou.onion/rainbows.git