S
smisk

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)
Parametersaddress (str) — socket path or host:port string

Bind 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.Error

Base exception for all Smisk core errors.

Modules