ft3.api.server.obj module¶
Api server objects.
- class Server(request, client_address, server)¶
Bases:
BaseHTTPRequestHandlerA very basic HTTP server.
- 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.
- do_DELETE() None¶
Handle a
DELETErequest.
- do_GET() None¶
Handle a
GETrequest.
- do_OPTIONS() None¶
Handle a
OPTIONSrequest.
- do_PATCH() None¶
Handle a
PATCHrequest.
- do_POST() None¶
Handle a
POSTrequest.
- do_PUT() None¶
Handle a
PUTrequest.