BodyLimitConfig defines the config for BodyLimitWithConfig middleware.
| 13 | |
| 14 | // BodyLimitConfig defines the config for BodyLimitWithConfig middleware. |
| 15 | type BodyLimitConfig struct { |
| 16 | // Skipper defines a function to skip middleware. |
| 17 | Skipper Skipper |
| 18 | |
| 19 | // LimitBytes is maximum allowed size in bytes for a request body |
| 20 | LimitBytes int64 |
| 21 | } |
| 22 | |
| 23 | type limitedReader struct { |
| 24 | BodyLimitConfig |
nothing calls this directly
no outgoing calls
no test coverage detected