Function serve
pub async fn serve(
calls: impl Calls,
addr: &str,
opts: HttpOptions,
) -> Result<HttpServer>Expand description
Binds addr and serves calls on a task of the current runtime.
pub async fn serve(
calls: impl Calls,
addr: &str,
opts: HttpOptions,
) -> Result<HttpServer>Binds addr and serves calls on a task of the current runtime.