mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
* 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
22 lines
370 B
Go
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
|
|
}
|