mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-06 05:37:36 +03:00
reduce debug logs
This commit is contained in:
parent
c3a5b846cb
commit
be33164dbf
1 changed files with 1 additions and 2 deletions
|
@ -41,7 +41,7 @@ func handleStream(frame *quic.StreamFrame) []quic.Frame {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
h2headersFrame := h2frame.(*http2.MetaHeadersFrame)
|
h2headersFrame := h2frame.(*http2.MetaHeadersFrame)
|
||||||
fmt.Printf("%#v\n", h2headersFrame)
|
fmt.Printf("Request: %s %s://%s%s\n", h2headersFrame.PseudoValue("method"), h2headersFrame.PseudoValue("scheme"), h2headersFrame.PseudoValue("authority"), h2headersFrame.PseudoValue("path"))
|
||||||
|
|
||||||
var replyHeaders bytes.Buffer
|
var replyHeaders bytes.Buffer
|
||||||
enc := hpack.NewEncoder(&replyHeaders)
|
enc := hpack.NewEncoder(&replyHeaders)
|
||||||
|
@ -64,7 +64,6 @@ func handleStream(frame *quic.StreamFrame) []quic.Frame {
|
||||||
Data: []byte("Hello World!"),
|
Data: []byte("Hello World!"),
|
||||||
FinBit: true,
|
FinBit: true,
|
||||||
}
|
}
|
||||||
fmt.Printf("%#v\n", dataStreamFrame)
|
|
||||||
|
|
||||||
return []quic.Frame{headerStreamFrame, dataStreamFrame}
|
return []quic.Frame{headerStreamFrame, dataStreamFrame}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue