Function request_endpoint_form_data

Source
pub async fn request_endpoint_form_data<'a, F>(
    form: Form,
    endpoint: &'a Endpoint,
    variant: EndpointVariant,
    cb: F,
) -> Result<(), Box<dyn Error>>
where F: FnMut(Result<String, Box<dyn Error>>),
Expand description

Send request to remote endpoint using Form data.

ยงArguments

  • form - the constructed HTTP form to send
  • endpoint - Endpoint enum variant
  • variant - Endpoint variant enum
  • cb - callback function that will be called when message received.