pub fn json_response<T: Serialize>( value: &T, ) -> Result<Response<Full<Bytes>>, OxiHttpError>
Build a JSON response from a serializable value.
Sets the Content-Type header to application/json.
Content-Type
application/json