MCPcopy
hub / github.com/tinode/chat / InfoNotModifiedExplicitTs

Function InfoNotModifiedExplicitTs

server/datamodel.go:1182–1194  ·  view source on GitHub ↗

InfoNotModifiedExplicitTs response means update request was a noop with explicit server and incoming request timestamps (304).

(id, topic string, serverTs, incomingReqTs time.Time)

Source from the content-addressed store, hash-verified

1180// InfoNotModifiedExplicitTs response means update request was a noop
1181// with explicit server and incoming request timestamps (304).
1182func InfoNotModifiedExplicitTs(id, topic string, serverTs, incomingReqTs time.Time) *ServerComMessage {
1183 return &ServerComMessage{
1184 Ctrl: &MsgServerCtrl{
1185 Id: id,
1186 Code: http.StatusNotModified, // 304
1187 Text: "not modified",
1188 Topic: topic,
1189 Timestamp: serverTs,
1190 },
1191 Id: id,
1192 Timestamp: incomingReqTs,
1193 }
1194}
1195
1196// InfoFound redirects to a new resource (307).
1197func InfoFound(id, topic string, ts time.Time) *ServerComMessage {

Callers 2

InfoNotModifiedFunction · 0.85
InfoNotModifiedReplyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…