code: func WithRequestInfo(handler http.Handler, resolver request.RequestInfoResolver) http.Handler {
  	return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
  		ctx := req.Context()
  		info, err := resolver.NewRequestInfo(req)
  		if err != nil {
  			responsewriters.InternalError(w, req, fmt.Errorf("failed to create RequestInfo: %v", err))
  			return
  		}
  
  		req = req.WithContext(request.WithRequestInfo(ctx, info))
  
  		handler.ServeHTTP(w, req)
  	})
  }
docs: // WithRequestInfo attaches a RequestInfo to the context.