-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat: add PeekKeys and PeekTrailerKeys #1405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
header.go
Outdated
@@ -43,6 +43,7 @@ type ResponseHeader struct { | |||
contentEncoding []byte | |||
server []byte | |||
mulHeader [][]byte | |||
keys [][]byte |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can re-use mulHeader
for this. But I do think we need to improve the warning for these and the PeekAll
functions to make it clear that any further calls to Peek*
functions will also change the return values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have modified the code and added the relevant code comments
83c78af
to
276d8cd
Compare
276d8cd
to
a8f79d7
Compare
Thanks! |
pr for #1400