Thrift transport in javascript client

前端 未结 4 1810
盖世英雄少女心
盖世英雄少女心 2021-02-14 15:14

I\'m trying to build a javascript client for my Thrift server. The server is up and running and I can get calls to the server working with a PHP client. I just can\'t figure out

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-14 15:36

    The argument is a URL to a website endpoint that acts as a thrift server using the HTTP processor and JSON protocol. The source code contains a java test server example which can work with such a client.

    For your own server, it should be able to act as a webserver, and handle things like CORS for cross-domain requests from your js client.

提交回复
热议问题