code: func RequireTaskQueue(queue string) router.Middleware {
  	return func(c *router.Context, next router.Handler) {
  		if !devAppserverBypassFn(c.Context) {
  			qName := c.Request.Header.Get("X-AppEngine-QueueName")
  			if qName == "" || (queue != "" && queue != qName) {
  				logging.Errorf(c.Context, "request made from wrong taskqueue: %q v %q", qName, queue)
  				http.Error(c.Writer, "error: must be run from the correct taskqueue", http.StatusForbidden)
  				return
  			}
  		}
  		next(c)
  	}
  }
docs: // RequireTaskQueue ensures that the request is from the specified task queue.
  //
  // It checks the presence of a magical header that can be set only by GAE.
  // If the header is not there, it aborts the request with StatusForbidden.
  //
  // if 'queue' is the empty string, than this simply checks that this handler was
  // run from ANY appengine taskqueue.
  //
  // This middleware has no effect when using 'BaseTest' or when running under
  // dev_appserver.py