TarsCloud / Tars

Tars is a high-performance RPC framework based on name service and Tars protocol, also integrated administration platform, and implemented hosting-service via flexible schedule.
BSD 3-Clause "New" or "Revised" License
9.79k stars 2.08k forks source link

If the two are all tars protocols, I can call A:: async_ in A. response_ Function, but how to do it in the HTTP protocol? #732

Closed TARS-Question closed 4 years ago

TARS-Question commented 4 years ago

Asynchronous nested call: After receiving the HTTP request from the web, a calls B service asynchronously, and wants to return to web asynchronously after B service returns.

#732

TARS-Answer commented 4 years ago

Take current and send response directly.

TARS-Answer commented 4 years ago

拿着current直接sendResponse。