Skip to content

LHTTP protocol

steven edited this page Mar 29, 2016 · 1 revision

#Introduction ###Background Today lots of developer use websocket link to provide long live, build IM server etc,. But we don't have a better way to handle some behavior. If http stress resource, lhttp aim to control command. ###Protocol Overview

LHTTP/1.0 Command\r\n                --------start line
Header1:value\r\n                    --------headers
Header2:value\r\n
\r\n
body                                 --------message body

###Relationship to TCP and Websocket

+--------------------+
|       lhttp        |
+--------------------+
|     websocket      |
+--------------------+
|        TCP         |
+--------------------+

#Start line #Command #Headers ###Subscribe/Publish ###Upstream ###Multipart #Body

#Transcoding

Clone this wiki locally