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

How does tarsgo implement HTTPS? #786

Closed TARS-Question closed 4 years ago

TARS-Answer commented 4 years ago

TarsGo implements TarsHttpMux based on http natively encapsulated by Go. It is very simple to use, but it does not provide HTTPS-related analysis. Since HTTP is not a tars protocol and has little to do with the tars framework, you can directly use the http package natively encapsulated by Go to implement https.

TARS-Answer commented 4 years ago

TarsGo中基于Go原生封装的http,实现了TarsHttpMux,使用上非常简单,但是没有提供HTTPS相关的解析。由于HTTP不是tars协议,与tars框架关系不大,可以自行直接使用Go原生封装的http包实现https。