Trait RedPandaHttpClient

Source
pub trait RedPandaHttpClient {
    // Required methods
    fn post(
        &mut self,
        url: &str,
        headers: &mut Vec<(String, String)>,
        data: Vec<u8>,
    ) -> Result<Vec<u8>, RedPandaError>;
    fn get(&mut self, url: &str) -> Result<Vec<u8>, RedPandaError>;
}

Required Methods§

Source

fn post( &mut self, url: &str, headers: &mut Vec<(String, String)>, data: Vec<u8>, ) -> Result<Vec<u8>, RedPandaError>

Source

fn get(&mut self, url: &str) -> Result<Vec<u8>, RedPandaError>

Implementors§