forked from quic-go/quic-go
http3: remove deprecated ListenAndServe and Server.SetQuicHeader (#4698)
This commit is contained in:
@@ -804,11 +804,6 @@ func (s *Server) SetQUICHeaders(hdr http.Header) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Deprecated: use SetQUICHeaders instead.
|
||||
func (s *Server) SetQuicHeaders(hdr http.Header) error {
|
||||
return s.SetQUICHeaders(hdr)
|
||||
}
|
||||
|
||||
// ListenAndServeQUIC listens on the UDP network address addr and calls the
|
||||
// handler for HTTP/3 requests on incoming connections. http.DefaultServeMux is
|
||||
// used when handler is nil.
|
||||
@@ -820,11 +815,6 @@ func ListenAndServeQUIC(addr, certFile, keyFile string, handler http.Handler) er
|
||||
return server.ListenAndServeTLS(certFile, keyFile)
|
||||
}
|
||||
|
||||
// Deprecated: use ListenAndServeTLS instead.
|
||||
func ListenAndServe(addr, certFile, keyFile string, handler http.Handler) error {
|
||||
return ListenAndServeTLS(addr, certFile, keyFile, handler)
|
||||
}
|
||||
|
||||
// ListenAndServeTLS listens on the given network address for both TLS/TCP and QUIC
|
||||
// connections in parallel. It returns if one of the two returns an error.
|
||||
// http.DefaultServeMux is used when handler is nil.
|
||||
|
||||
Reference in New Issue
Block a user