Documentation ¶
Index ¶
Constants ¶
View Source
const ( CRLF = "\r\n" // 定义行结束 CRLF2 = "\r\n\r\n" // 定义首部报文结束符 )
Variables ¶
View Source
var (
SetResponseHeaderOnce sync.Once
)
Functions ¶
func StartServer ¶
func StartServer(addr string)
Types ¶
type HttpInfo ¶
type HttpInfo struct { RequestInfo ResponseInfo }
func (*HttpInfo) SetResponseHeader ¶
Click to show internal directories.
Click to hide internal directories.