Versions in this module Expand all Collapse all v1 v1.0.9 Oct 1, 2026 Changes in this version + func HTTPMiddleware(handler http.Handler, limit int64) http.Handler + func IsBodyTooLargeError(e error) bool + func IsNilReaderError(e error) bool + func IsNotAReaderInstanceError(e error) bool + func IsReaderNotFoundError(e error) bool + type BodyTooLargeError struct + Limit int64 + func (BodyTooLargeError) Is(target error) bool + func (e BodyTooLargeError) Error() string + type DoppelgangerFactory interface + Close func() error + NewDoppelganger func() io.ReadCloser + RemoveDoppelganger func(r io.ReadCloser) error + func GetFactory(reader io.Reader) DoppelgangerFactory + func HTTPBodyFactory(r *http.Request) DoppelgangerFactory + func NewFactory(readerToMimic io.Reader) DoppelgangerFactory + type NilReaderError struct + func (NilReaderError) Error() string + func (NilReaderError) Is(target error) bool + type NotAReaderInstanceError struct + func (NotAReaderInstanceError) Error() string + func (NotAReaderInstanceError) Is(target error) bool + type ReaderNotFoundError struct + func (ReaderNotFoundError) Error() string + func (ReaderNotFoundError) Is(target error) bool