blem using Go&rsquo;s io.Reader interface."><meta name=keywords content="blog,developer,personal"><meta name=fediverse:creator content><meta name=twitter:card content="summary"><meta name=twitter:title content="An Infinite io.Reader in Go"><meta name=twitter: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 