core
Handles I/O, HTTP transactions, sessions, and the core FastCGI event loop. This is the C-extension heart of Smisk, providing low-overhead request handling.
Attributes
smisk.core.__build__Build identifier for this version of the C extension.
Functions
smisk.core.bind(address)-
Parameters address (str) — socket path or host:portstringBind the FastCGI listener to the given address before calling
run(). smisk.core.run()Enter the FastCGI request dispatch loop. Blocks until the process receives a termination signal.
Classes
- class
smisk.core.Application -
Base application class. Subclass this and override
service()to handle requests.service()Called for every incoming request. Override in subclasses.
run()Convenience wrapper around
smisk.core.run().
- class
smisk.core.Request Represents an incoming HTTP request. Provides access to headers, environment, and input stream.
- class
smisk.core.Response -
Represents the HTTP response being constructed.
__call__()Finalise and send the response.
Exceptions
smisk.core.ErrorBase exception for all Smisk core errors.
Modules
- xml — XML serialization helpers