Skip to main content

serve

Function serve 

Source
pub fn serve(
    addr: &str,
    metadata: ServerAdapterMetadata,
    surface_provider: fn() -> PackageSurface,
    runner: fn(SurfaceRequest) -> Result<SurfaceResponse, String>,
) -> Result<()>
Expand description

Serves the standard local package-surface HTTP API.