func Serve(rw io.ReadWriter, handler Handler) error {
	s := Server{
		Handler: handler,
		RW:      rw,
	}

	err := s.Start()
	if c, ok := s.RW.(io.Closer); ok {
		c.Close()
	}
	return err
}
// Serve serves a ReadWriter with the given handler. Serve does not return
// unless an I/O error occurs.
Serve serves a ReadWriter with the given handler. Serve does not return
unless an I/O error occurs.
// Serve serves a ReadWriter with the given handler . Serve does not return // unless an I / O error occurs .
func Serve(rw io.ReadWriter, handler Handler) error {
	s := Server{
		Handler: handler,
		RW:      rw,
	}
	err := s.Start()
	if c, ok := s.RW.(io.Closer); ok {
		c.Close()
	}
	return err
}
func Serve ( rw io . ReadWriter , handler Handler ) error { s := Server { Handler : handler , RW : rw , } err := s . Start ( ) if c , ok := s . RW . ( io . Closer ) ; ok { c . Close ( ) } return err }
Serve serves a ReadWriter with the given handler.
Serve serves a ReadWriter with the given handler .