Standard library / net/http
http.StatusLengthRequired
HTTP status 411. A defined Content-Length is required. Expected stdout: '411\n'.
Formal Syntax & Structure
go syntaxgo
const StatusLengthRequired = 411Working Example
Example Snippetgo
package main
import ( "fmt" "net/http")
func main() { fmt.Println(http.StatusLengthRequired) }
func must[T any](v T, e error) T { if e != nil { panic(e) } return v}func check(e error) { if e != nil { panic(e) }}