code.gitea.io/gitea@v1.19.3/modules/web/routing/requestrecord.go (about) 1 // Copyright 2021 The Gitea Authors. All rights reserved. 2 // SPDX-License-Identifier: MIT 3 4 package routing 5 6 import ( 7 "net/http" 8 "sync" 9 "time" 10 ) 11 12 type requestRecord struct { 13 // index of the record in the records map 14 index uint64 15 16 // immutable fields 17 startTime time.Time 18 request *http.Request 19 responseWriter http.ResponseWriter 20 21 // mutex 22 lock sync.RWMutex 23 24 // mutable fields 25 isLongPolling bool 26 funcInfo *FuncInfo 27 panicError interface{} 28 }