Files
gotea/modules/web/routing/requestrecord.go
T
lotherk 1b490485ff refactor: import Gotea from Gitea v28.4.0
Rename the main module to gotea.dev and the binary to gotea, and update the application name and English locale. Keep the external gitea.dev/sdk and gitea.dev/actionslib module imports unchanged.

Assisted-by: OpenCode:DeepSeek-V4.1-Flash
2026-11-22 12:13:09 +00:00

32 lines
568 B
Go

// Copyright 2021 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package routing
import (
"net/http"
"sync"
"time"
"gotea.dev/modules/log"
)
type requestRecord struct {
// immutable fields
index uint64 // unique number (per process) for the request
startTime time.Time
request *http.Request
respWriter http.ResponseWriter
// mutex
lock sync.RWMutex
// below are mutable fields
funcInfo *FuncInfo
// * for "mark as long polling"
isLongPolling bool
// * for router logger
logLevel log.Level
panicError error
}