EventMachine with REST

I recently started working on Event Machine and its still the
early days.

 I had started a service(a small server) running on port 8001 using
 Event Machine.

 Currently,I want to pass a given querystring with my given url i.e to the service.

 The final url look like this


 Now,I want to access the query string they way we do using Rest API

 I know that Event Machine currenly has an instance variable called
 "@http_query_string" which will return the given query string for

current request but it needed extra logic to been written to
the output as above(I might be wrong on this,I don’t know I am
Is there a easy way to access the querystring just as the above

 I know it work coz i have implemented the above in sinatra

Any thought
Thanks anyway