"og:url" content="https://shallowbrooksoftware.com/posts/an-infinite-io-reader-in-go/"><meta property="og:site_name" content="Shallow Brook Software"><meta property="og:title" content="An Infinite io.Reader in Go"><meta property="og:description" content="I recently wrote some middleware to ensure that incoming requests to a web server have an explicit size limit. Until I determine this to be too small, I chose to limit request bodies to 4KB. Go’s net/http package already includes a utility for this (calle