Standard library / net/http

http.ErrNotSupported

Error matching unsupported response-writer control operations. Prefer errors.Is over text comparisons. Expected stdout: 'true\n'.

Formal Syntax & Structure

go syntaxgo
var ErrNotSupported = &ProtocolError{"feature not supported"}

Working Example

Example Snippetgo
package main
import (  "errors"  "fmt"  "net/http"  "net/http/httptest")
func main() {  e := http.NewResponseController(httptest.NewRecorder()).EnableFullDuplex()  fmt.Println(errors.Is(e, http.ErrNotSupported))}
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)  }}
Go Reference