pub async fn request_endpoint_form_data<'a, F>(
form: Form,
endpoint: &'a Endpoint,
variant: EndpointVariant,
cb: F,
) -> Result<(), Box<dyn Error>>
Expand description
Send request to remote endpoint using Form data.
ยงArguments
form
- the constructed HTTP form to sendendpoint
- Endpoint enum variantvariant
- Endpoint variant enumcb
- callback function that will be called when message received.