Skip to content

Instantly share code, notes, and snippets.

@rekby
rekby / main.go
Created October 19, 2022 21:27
limit max request size example
package main
import (
"io"
"net/http"
)
const maxLen = 10
func handler(w http.ResponseWriter, r *http.Request) {