github.com/pf-qiu/concourse/v6@v6.7.3-0.20201207032516-1f455d73275f/web/robotshandler/handler.go (about)

     1  package robotshandler
     2  
     3  import (
     4  	"fmt"
     5  	"net/http"
     6  )
     7  
     8  func NewHandler() http.Handler {
     9  	return &handler{}
    10  }
    11  
    12  type handler struct{}
    13  
    14  func (self *handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
    15  	fmt.Fprintln(w, "User-agent: *")
    16  	fmt.Fprintln(w, "Disallow: /")
    17  }