ft3.api.server package

Server modules.

class Server(request, client_address, server)

Bases: BaseHTTPRequestHandler

A very basic HTTP server.

do_DELETE() None

Handle a DELETE request.

do_GET() None

Handle a GET request.

do_OPTIONS() None

Handle a OPTIONS request.

do_PATCH() None

Handle a PATCH request.

do_POST() None

Handle a POST request.

do_PUT() None

Handle a PUT request.

get_request() Request

Get current request.

log_message(**kwargs: Any) None

Log an arbitrary message.

This is used by all other logging functions. Override it if you have specific logging wishes.

The first argument, FORMAT, is a format string for the message to be logged. If the format string contains any % escapes requiring parameters, they should be specified as subsequent arguments (it’s just like printf!).

The client ip and current date/time are prefixed to every message.

Unicode control characters are replaced with escaped hex before writing the output to stderr.

respond(response: Response) None

Respond to requestor.

handler: Handler

Submodules