You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: server.go
    path of file: ./repos/botkube/pkg/httpx
    
    the code of the file until where you have to start completion: package httpx

import (
	"context"
	"fmt"
	"net/http"
	"time"

	"github.com/sirupsen/logrus"
)

const readHeaderTimeout = 1 * time.Minute

// Server provides functionality to start HTTP server with a cancelable context.
type Server struct {
	srv *http.Serv
    
func (s *Server) Serve(ctx context.Context) error {
	go func() {
		<-ctx.Done()
		s.log.Info("Shutdown requested. Finishing...")
		if err := s.srv.Shutdown(context.Background()); err != nil {
			s.log.Error("while shutting down server: %w", err)
		}
	}()

	s.log.Infof("Starting server on address %q", s.srv.Addr)
	if err := s.srv.ListenAndServe(); err != http.ErrServerClosed {
		return fmt.Errorf("while starting server: %w", err)
	}

	return nil
}