Skip to main content

Module server

Module server 

Source
Expand description

Dev server infrastructure. Dev server infrastructure for the static site generator.

Structs§

HttpTransport
Production transport: starts an http_handle::Server.

Traits§

ServeTransport
Pluggable transport that drives the dev server.

Functions§

generate_locale_redirect
Generates a root index.html that reads the browser’s language preference and redirects to the best matching locale directory.
handle_server
Configures and launches the development server.
prepare_serve_dir
Prepares the serve directory by creating it and copying site files.
serve_site
Converts a site directory path to a string and starts an HTTP server.
serve_site_with
Starts the dev server using a caller-supplied transport.