doc: update some descriptions

This commit is contained in:
nadoo committed 2018-07-25 08:23:58 +08:00
1 parent 49021f167c
commit 21923af1cd
5 files changed
+18 -18

No files matched your search

+1 -1
View File
@@ -98,7 +98,7 @@ func (c *Conn) Read(b []byte) (n int, err error) {
}
// parseFirstLine parses "GET /foo HTTP/1.1" OR "HTTP/1.1 200 OK" into its three parts.
// TODO: move to seperate http lib package for reuse(also for http proxy module)
// TODO: move to separate http lib package for reuse(also for http proxy module)
func parseFirstLine(tp *textproto.Reader) (r1, r2, r3 string, ok bool) {
line, err := tp.ReadLine()
// log.F("first line: %s", line)
-3
View File
@@ -33,13 +33,10 @@ const (
defaultFrameSize = 4096
maxFrameHeaderSize = 2 + 8 + 4 // Fixed header + length + mask
maskKeyLen = 4
)
const (
finalBit byte = 1 << 7
maskBit byte = 1 << 7
opCodeBinary byte = 2
opClose byte = 8
)
type frameWriter struct {