We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0de63e4 commit 32e51cbCopy full SHA for 32e51cb
entity.go
@@ -101,10 +101,12 @@ func (lr *limitedReader) Read(p []byte) (int, error) {
101
return n, err
102
}
103
104
+// ReadOptions are options for ReadWithOptions.
105
type ReadOptions struct {
106
// MaxHeaderBytes limits the maximum permissible size of a message header
107
// block. If exceeded, an error will be returned.
- // -1 == no limit, 0 == default value (1MB)
108
+ //
109
+ // Set to -1 for no limit, set to 0 for the default value (1MB).
110
MaxHeaderBytes int64
111
112
0 commit comments