moonraker: remove references to Tornado's http client

Add the http client wrapper to core components.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2022-02-28 11:13:17 -05:00
parent 43b19d8a83
commit 0abb831ea0
No known key found for this signature in database
GPG Key ID: 7027245FBBDDF59A
1 changed files with 1 additions and 7 deletions

View File

@ -18,7 +18,6 @@ import signal
import confighelper
import utils
import asyncio
from tornado.httpclient import AsyncHTTPClient
from eventloop import EventLoop
from app import MoonrakerApp
from klippy_connection import KlippyConnection
@ -48,16 +47,11 @@ API_VERSION = (1, 0, 1)
CORE_COMPONENTS = [
'dbus_manager', 'database', 'file_manager', 'klippy_apis',
'machine', 'data_store', 'shell_command', 'proc_stats',
'job_state', 'job_queue'
'job_state', 'job_queue', 'http_client'
]
SENTINEL = SentinelClass.get_instance()
# Configure the http client to use the pycurl based implementation
AsyncHTTPClient.configure(
"tornado.curl_httpclient.CurlAsyncHTTPClient",
defaults=dict(user_agent="Moonraker"))
class Server:
error = ServerError
def __init__(self,