Function toad::server::respond::respond

source ·
pub fn respond<P, E>(
    code: Code,
    payload: P::MessagePayload
) -> Ap<CompleteWhenHydrated, P, (), E>where
    P: PlatformTypes,
    E: Debug,
Expand description

Respond to the incoming request, with a custom code and payload.