private void WriteHeaders() { _response.Headers.Add("Raven-Result-Etag", ResultEtag.ToString()); _response.Headers.Add("Raven-Is-Stale", IsStale ? "true" : "false"); _response.Headers.Add("Raven-Index", IndexName); _response.Headers.Add("Raven-Total-Results", TotalResults.ToInvariantString()); _response.Headers.Add("Raven-Index-Timestamp", IndexTimestamp.GetDefaultRavenFormat(isUtc: true)); }
private void WriteStreamQueryStatistics() { _writer.WritePropertyName(nameof(StreamQueryStatistics.ResultEtag)); _writer.WriteInteger(ResultEtag); _writer.WriteComma(); _writer.WritePropertyName(nameof(StreamQueryStatistics.IsStale)); _writer.WriteBool(IsStale); _writer.WriteComma(); _writer.WritePropertyName(nameof(StreamQueryStatistics.IndexName)); _writer.WriteString(IndexName); _writer.WriteComma(); _writer.WritePropertyName(nameof(StreamQueryStatistics.TotalResults)); _writer.WriteInteger(TotalResults); _writer.WriteComma(); _writer.WritePropertyName(nameof(StreamQueryStatistics.IndexTimestamp)); _writer.WriteString(IndexTimestamp.GetDefaultRavenFormat(isUtc: true)); _writer.WriteComma(); }