1
0
mirror of https://github.com/mbirth/tcl_ota_check.git synced 2024-11-10 06:16:46 +00:00
tcl_ota_check/tcllib/requests/tclrequest.py

27 lines
591 B
Python
Raw Normal View History

2018-02-10 01:37:10 +00:00
# -*- coding: utf-8 -*-
from . import tclresult
class TclRequest:
def __init__(self):
self.uri = ""
self.rawmode = False
2018-02-10 01:37:10 +00:00
self.response = None
self.result = None
self.error = None
self.success = False
def get_headers(self):
return {}
def get_params(self):
return {}
def is_done(self, http_status: int, contents: str):
"""Checks if query is done or needs retry."""
return False
def get_result(self) -> tclresult.TclResult:
"""Returns Result object."""
return self.result