feat: add shared size limit constants
This commit is contained in:
10
pkg/net/limits/limits.go
Normal file
10
pkg/net/limits/limits.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package limits
|
||||
|
||||
// Common size limits used when reading upstream responses.
|
||||
|
||||
const (
|
||||
Bytes512 = 512
|
||||
KiB512 int64 = 512 << 10
|
||||
MiB2 int64 = 2 << 20
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user