Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

htty, but speaking through rack

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 MIT-LICENSE.rdoc
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
Octocat-spinner-32 VERSION
Octocat-spinner-32 config.ru
Octocat-spinner-32 htty-rack.gemspec
README.rdoc
 _________________________ 
< no fancy ASCII art here >
 ------------------------- 
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

htty-rack is an extension to htty that switches the HTTP backend in favour of a Rack application. For that purpose, it also provides a set of commands for controlling which rack application is used etc.

Warning

Alpha. No Features guaranteed.

Installation

At the moment, this only works with the htty fork found at:

http://github.com/Asquera/htty-rack

Use rubygems:

$ gem install htty-rack

Usage

htty-rack uses a different executable than htty. Start htty-rack using:

$ htty-rack <config-file>

If no config (*.ru) file is given, htty-rack will recursively descend to find a file called “config.ru”.

Examples

Beyond the examples described on the htty page, htty-rack supports a few other commands:

  • app <app> will change the rack appliation in use. The argument must be a ruby constant.

  • config <file> will load a new rackup file and use the application therein.

  • irb starts irb so that you can manipulate the environment.

Thanks

  • Nils Jonsson for writing htty and making this project possible

Something went wrong with that request. Please try again.