| 207 | } |
| 208 | |
| 209 | fl::task::Promise<fl::json> HttpStreamTransport::rpc(const fl::string& method, const fl::json& params) { |
| 210 | int id = mNextCallId++; |
| 211 | fl::json request = fl::json::object(); |
| 212 | request.set("jsonrpc", "2.0"); |
| 213 | request.set("method", method); |
| 214 | request.set("params", params); |
| 215 | request.set("id", id); |
| 216 | return rpc(request); |
| 217 | } |
| 218 | |
| 219 | fl::task::Promise<fl::json> HttpStreamTransport::rpc(const fl::json& fullRequest) { |
| 220 | fl::task::Promise<fl::json> p = fl::task::Promise<fl::json>::create(); |
no test coverage detected