summaryrefslogtreecommitdiffstats
path: root/modules/web/routing/requestrecord.go
blob: cc61fc4d348395e4044f1ac4d0a5bd91e3339a0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright 2021 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT

package routing

import (
	"net/http"
	"sync"
	"time"
)

type requestRecord struct {
	// index of the record in the records map
	index uint64

	// immutable fields
	startTime      time.Time
	request        *http.Request
	responseWriter http.ResponseWriter

	// mutex
	lock sync.RWMutex

	// mutable fields
	isLongPolling bool
	funcInfo      *FuncInfo
	panicError    any
}