gitea源码

1234567891011121314151617181920212223242526272829
  1. // Copyright 2021 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package routing
  4. import (
  5. "net/http"
  6. "sync"
  7. "time"
  8. )
  9. type requestRecord struct {
  10. // index of the record in the records map
  11. index uint64
  12. // immutable fields
  13. startTime time.Time
  14. request *http.Request
  15. responseWriter http.ResponseWriter
  16. // mutex
  17. lock sync.RWMutex
  18. // mutable fields
  19. isLongPolling bool
  20. funcInfo *FuncInfo
  21. panicError any
  22. }