pub fn post_json<T: Serialize>( url: impl Into<String>, body: &T, ) -> Result<HttpResponse, HttpError>
Convenience function for simple POST requests with JSON body.