Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Implementig a XCAP web server: Ebb and Rack ?

Thread Tools

Implementig a XCAP web server: Ebb and Rack ?

Iñaki Baz Castillo
Posts: n/a
Hi, I plan to deploy a web server to implement a XCAP service (it's basical=
a web server which handles body with specific XML content). Some examples:

=2D The client requests a XML document (GET) so the server replies it in th=
body of the 200 OK.

=2D The client stores a XML document (PUT) in the server, so the server=20
validates it and stores in a DB table.

There are a lot of web servers built in Ruby and I'm getting a bit crazy by=
tryting to choose one. I've read about Ebb web server (which seems to be ve=
fast) and RACK (which seems to be a framework to build the application by=20
receiving requests from the web service, Ebb in this case).

Unfortunatelly, by reading the doc of RACK (Ebb has no doc at all) I can't=
figure how to build the application:

RACK doc also talks about "middleware" (buff...) which annoy me even more.=
Anyhow I think that what I want to achieve doesn't require more middleware.=
But I would like to have some "get started" guidelines to work with RACK. F=
example, a ismple example:

A web server that receive a request and replies "200 OK" if the request URL=
"/yes" and "404 Not Found" is the request URL is "/no".

Could I get some tips on how to build this simple example with Ebb and RACK?

Thanks a lot.

I=C3=B1aki Baz Castillo <(E-Mail Removed)>

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
why the output is different when i am implementig multiline string Python 6 01-02-2013 03:11 PM
[ANN] Sunshowers - Web Sockets for Ruby, Rack+Rainbows! Eric Wong Ruby 2 12-14-2009 11:12 AM
Implementig a XCAP web server: Ebb and Rack ? Iñaki Baz Castillo Ruby 2 08-29-2009 02:20 AM
[ANN] Rack::Cache 0.2, Real HTTP caching for Ruby web apps Ryan Tomayko Ruby 0 10-25-2008 03:57 AM
Source for rack screws and hardware J Cisco 4 08-03-2006 01:17 PM