[ 
https://issues.apache.org/jira/browse/THRIFT-247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12661346#action_12661346
 ] 

Jérémie BORDIER commented on THRIFT-247:
----------------------------------------

Thanks for the tip Jake. I had a look at your example and to the libevent 
documentation, but i don't think we would benefit from integrating their server 
(would be quite hard to get it fitting into the thrift abstraction model). 
However, they provide functions for parsing arguments and stuff that could 
maybe be usefull in future versions of THttpServer, maybe for a GET request 
capable transport.

> THttpServer Transport
> ---------------------
>
>                 Key: THRIFT-247
>                 URL: https://issues.apache.org/jira/browse/THRIFT-247
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Library (C++)
>            Reporter: Jérémie BORDIER
>            Priority: Minor
>         Attachments: THRIFT-247_THttpServer.patch
>
>
> Here is a first working version of the THttpServer transport for the C++ 
> library.
> It was inspired by Mark Slee's THttpClient which i splitted into an 
> interface, THttpTransport and two transport implementations, THttpClient and 
> THttpServer. Tested with TJsonProtocol (the fixed revision available in 
> THRIFT-244) and TBinaryProtocol in the tutorial example, works like a charm.
> The code is available in the attached patch, and in the gitweb tree in 
> refs/pri/jbordier/cleaning_protocols, or also in github: 
> http://github.com/ahfeel/thrift/tree/master
> It only supports POST requests yet, and i'm working in adding a 
> ?callback=some_js_callback support to the URI to have JsonP protocol support.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to