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§
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>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".