On Mon, Jan 2, 2012 at 9:44 AM, Bruno Gruel <[email protected]> wrote: > On Mon, 2 Jan 2012 06:46:03 +0000, lkcl luke wrote: >> On Mon, Jan 2, 2012 at 4:56 AM, C Anthony Risinger <[email protected]> >> wrote: >>> On Sun, Jan 1, 2012 at 10:54 AM, Bruno Gruel <[email protected]> >>> wrote: >>>> >>>> But under mongrel2 the json declaration is like that '@Xservice' = >>>> handler >>> >>> maybe this is what you mean, but per my understanding and: >>> >>> http://mongrel2.org/static/mongrel2-manual.html#x1-370003.6.2 >>> >>> ... it's not the route location that starts with an `@`, it's the >>> request itself ... yes? eg: >>> >>> @chat {"msg": "hello"}\0 >>> >>> ... is the ENTIRE request at the server level. these are raw/native >>> JSON handlers, and are by design, location-less/url-less ... they >>> are >>> not HTTP IIRC ... >> >> in other words, bruno, you should *totally* ignore that. it is >> completely irrelevant and will cause you massive problems trying to >> use it. >> >> you want the raw http data (all of it) and you want the raw http >> "send" message. these will be available to mongrel2 as one-line >> function calls or pre-existing variables. >> >> yes _raw_ data *NOT* pre-processed in ANY way. >> >> also you should NOT be using the pyjamas codebase to do testing. >> use >> the jsonrpclib.tgz codebase to write unit tests from python client >> command-line ONLY. >> >> l. > > Re, > > Sorry for the delay i can't reply before. > I don't really understant what i must do or just if it's possible to do > it.
there isn't much more that i can say, other than actually doing it for you (which would defeat the object of the exercise) also because it is so simple there isn't anything else that can be said, because it has been said already. you will need to look at the source code of mongrel2. it is python, so it is available. you need to write approximately 3 to 5 lines of code - that is all. l.

