mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
doc: update some descriptions
This commit is contained in:
1 parent
49021f167c
commit
21923af1cd
5 files changed
+18
-18
No files matched your search
+1
-1
@@ -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)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user