Function send_response
fn send_response(
outbound: &mut PacketWriter<GrowBuffer>,
response: Option<Response>,
) -> Option<(DisconnectReason, bool)>Available on crate feature
tokio only.Expand description
Enqueues the response the client asked for, if any.
Returns Some((reason, graceful)) when the connection should end.