Files
Atay-Makhzan/modules/web/routing/requestrecord.go
T

29 lines
463 B
Go
Raw Normal View History

2022-01-20 19:41:25 +08:00
// Copyright 2021 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
2022-01-20 19:41:25 +08:00
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
2023-07-04 20:36:08 +02:00
panicError any
2022-01-20 19:41:25 +08:00
}