pub fn encode_sse_event(
event: &SseEvent,
limits: CodecLimits,
) -> Result<Bytes, CodecError>Expand description
Encodes one event. Use SseEncoder for cumulative limits over a whole body.
pub fn encode_sse_event(
event: &SseEvent,
limits: CodecLimits,
) -> Result<Bytes, CodecError>Encodes one event. Use SseEncoder for cumulative limits over a whole body.