Skip to content

octoprint.vendor.sockjs.tornado.basehandler#

BaseHandler #

Bases: RequestHandler

Base request handler with set of helpers.

disable_cache() #

Disable client-side cache for the current request

enable_cache() #

Enable client-side caching for the current request

finish(chunk = None) #

Tornado finish handler

Handle JSESSIONID cookie logic

initialize(server) #

Initialize request

server SockJSRouter instance.

on_connection_close() #

Tornado on_connection_close handler

prepare() #

Increment connection count

safe_finish() #

Finish session. If it will blow up - connection was set to Keep-Alive and client dropped connection, ignore any IOError or socket error.

PreflightHandler #

Bases: BaseHandler

CORS preflight handler

options(*args, **kwargs) #

XHR cross-domain OPTIONS handler

preflight() #

Handles request authentication

verify_origin() #

Verify if request can be served