Rocket/core/lib/src
Sergio Benitez 6fc24789e9 Fix SSE heartbeat so it never interrupts events.
Previously, the heartbeat message, in its raw form, was ":\n\n". This
commit changes the message to be ":\n".

The former message, when parsed as Server-Sent Events, contained an
empty comment (as desired) _and_ a new line (erroneously). The new line
resulted in emitting any event that was presently being emitted, even if
it wasn't complete. That is, emitting an event partly, such as the
event's data but not its name. Removing the extra new line resolves this
issue and ensures that events aren't interrupted by the heartbeat.

Fixes #2152.
2022-04-27 13:59:03 -07:00
..
catcher Check for trailing new lines in testing script. 2021-06-07 19:31:23 -07:00
config Log HTTP/2 availability at start-up. 2022-03-08 15:24:14 -08:00
data Rework 'local_cache!' so it returns unique refs. 2022-04-18 18:12:54 -07:00
fairing New version: 0.5.0-rc.1. 2021-06-09 09:52:37 -07:00
form Consider form parsing strategy for 'Vec', 'Map'. 2022-04-21 08:17:58 -07:00
fs Clarify 'Options::Missing' exception in 'FileServer'. 2021-08-19 19:43:34 -07:00
local Use new 2021 edition functionality. 2022-04-19 18:35:55 -07:00
request Rework 'local_cache!' so it returns unique refs. 2022-04-18 18:12:54 -07:00
response Fix SSE heartbeat so it never interrupts events. 2022-04-27 13:59:03 -07:00
route Update codebase for latest nightly and stable. 2022-02-16 10:08:55 -08:00
router Overhaul URI types, parsers, 'uri!' macro. 2021-05-19 18:47:11 -07:00
serde Update 'uuid' to 1.0. 2022-04-26 22:04:47 -07:00
shield Add 'includeSubdomains' in HSTS preload header. 2022-02-22 18:19:09 -08:00
cookies.rs Fix 'observe' and 'retrieve' typos in cookie docs. 2022-02-23 14:40:01 -08:00
error.rs Fix typos throughout codebase. 2021-06-07 19:31:21 -07:00
ext.rs Update 'rustls' to 0.20. 2022-02-22 17:30:42 -08:00
lib.rs Make HTTP/2 optional via 'http2' feature. 2022-03-08 15:13:24 -08:00
log.rs Use 'print' for logging in debug. 2022-04-14 15:01:51 -07:00
mtls.rs Complete mTLS implementation. 2021-07-09 00:05:44 -07:00
outcome.rs Drop 'Data' after sending a response, not before. 2021-06-08 13:26:16 -07:00
phase.rs Implement graceful shutdown. 2021-04-28 03:20:44 -07:00
rocket.rs Use new 2021 edition functionality. 2022-04-19 18:35:55 -07:00
sentinel.rs Fix typo in 'Sentinel' docs: 'INner' -> 'Inner'. 2021-06-30 11:08:20 -07:00
server.rs Make HTTP/2 optional via 'http2' feature. 2022-03-08 15:13:24 -08:00
shutdown.rs Protect graceful shutdown against runaway I/O. 2021-05-31 23:47:52 -07:00
state.rs Retrieve managed state via a borrow: '&State<T>'. 2021-05-11 08:58:16 -05:00
trip_wire.rs Protect graceful shutdown against runaway I/O. 2021-05-31 23:47:52 -07:00