feat: add shared size limit constants

This commit is contained in:
2026-05-18 15:08:26 +02:00
parent 56c8618f5f
commit 943285b356
6 changed files with 23 additions and 8 deletions

10
pkg/net/limits/limits.go Normal file
View 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
)