Skip to main content

Module request

Module request 

Source

Functions§

content_type 🔒
process_with_empty_response
Sends and processes a request expecting an empty response, returning Ok(()) when successful.
process_with_json_response
Sends and processes a request expecting a JSON response, deserializing it into the type T.
process_with_json_response_internal 🔒
process_with_json_response is generic, which means it gets monomorphized for every type it’s used with. This function contains the non-generic logic for processing the response so that it doesn’t get duplicated.