InfoNotModifiedExplicitTs response means update request was a noop with explicit server and incoming request timestamps (304).
(id, topic string, serverTs, incomingReqTs time.Time)
| 1180 | // InfoNotModifiedExplicitTs response means update request was a noop |
| 1181 | // with explicit server and incoming request timestamps (304). |
| 1182 | func 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). |
| 1197 | func InfoFound(id, topic string, ts time.Time) *ServerComMessage { |
no outgoing calls
no test coverage detected
searching dependent graphs…