uquic/integrationtests/self/go119_test.go
Kévin Dunglas 172123c340
http3: add compatibility with net/http.ResponseController (#3790)
* feat: compatibility with "net/http".ResponseController

* better deadline tests

* don't run deadline tests on Go 1.19

* skip deadline tests on Go 1.19
2023-05-01 04:40:33 -07:00

22 lines
370 B
Go

//go:build go1.19 && !go1.20
package self_test
import (
"errors"
"net/http"
"time"
)
var (
go120 = false
errNotSupported = errors.New("not supported")
)
func setReadDeadline(w http.ResponseWriter, deadline time.Time) error {
return errNotSupported
}
func setWriteDeadline(w http.ResponseWriter, deadline time.Time) error {
return errNotSupported
}