Skip to main content

ApplicationLayerApi

Trait ApplicationLayerApi 

Source
pub trait ApplicationLayerApi {
    // Required methods
    fn http_get(
        &self,
        host: &str,
        path: &str,
    ) -> Result<AppHttpResponse, TcpIpError>;
    fn https_get(
        &self,
        host: &str,
        path: &str,
    ) -> Result<AppHttpResponse, TcpIpError>;
    fn http_post(
        &self,
        host: &str,
        path: &str,
        content_type: &str,
        body: &[u8],
    ) -> Result<AppHttpResponse, TcpIpError>;
}

Required Methods§

Source

fn http_get( &self, host: &str, path: &str, ) -> Result<AppHttpResponse, TcpIpError>

Source

fn https_get( &self, host: &str, path: &str, ) -> Result<AppHttpResponse, TcpIpError>

Source

fn http_post( &self, host: &str, path: &str, content_type: &str, body: &[u8], ) -> Result<AppHttpResponse, TcpIpError>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§