betty.serve module¶
Provide the Serve API to serve resources within the application.
- final class betty.serve.BuiltinProjectServer[source]¶
Bases:
ProjectServer
A built-in server for a Betty project.
- final class betty.serve.BuiltinServer[source]¶
Bases:
Server
A built-in server for a WWW directory.
- exception betty.serve.NoPublicUrlBecauseServerNotStartedError[source]¶
Bases:
ServerNotStartedError
A public URL is not yet available because the server has not (fully) started yet.
- exception betty.serve.OsError[source]¶
Bases:
UserFacingError
,OSError
Raised for I/O errors.
- class betty.serve.ProjectServer[source]¶
Bases:
ProjectDependentFactory
,Server
A web server for a Betty project.
- exception betty.serve.ServerNotStartedError[source]¶
Bases:
RuntimeError
Raised when a web server has not (fully) started yet.