Module Import alias Import alias ImportFrom alias ImportFrom alias alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Import alias With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str NameStore body While NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Return Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr orelse Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad TryExcept body While NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Pass Expr Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A logging N/A threading zerotest.record.formatter Formatter zerotest.utils.queue_helper Queue Empty N/A LOG N/A N/A logging getLogger __name__ HTTPRecorder N/A object N/A N/A 
    format and record tunnel request/response to file
     __init__ N/A N/A self filepath N/A N/A N/A 
        :param filepath: new record will append to file if filepath exists
        :return:
         N/A N/A self filepath filepath N/A N/A self _running False N/A N/A self _closing False N/A N/A self _service_thread None N/A N/A self _queue N/A Queue N/A N/A self _formatter N/A Formatter N/A start_service N/A N/A self N/A N/A N/A 
        start recorder service
        :return:
         N/A N/A self _service_thread N/A N/A threading Thread target N/A self _loop_work N/A N/A self _running True N/A N/A N/A LOG info N/A N/A recorder service start, store http record to '{}' format N/A self filepath N/A N/A N/A N/A self _service_thread start N/A _loop_work N/A N/A self N/A N/A N/A codecs N/A N/A N/A codecs open N/A self filepath a+ utf-8 record_file N/A N/A True N/A N/A task N/A N/A N/A self _queue get N/A N/A N/A LOG debug receive task %s task N/A N/A task None N/A N/A N/A N/A record_file close N/A N/A N/A N/A N/A self _formatter write_record record_file N/A task N/A 0 N/A task N/A 1 N/A N/A N/A record_file flush N/A N/A N/A LOG debug writen task %s task N/A record_http N/A N/A self request response N/A N/A N/A 
        async method, put request, response into task queue
        :return:
         N/A N/A N/A self _closing N/A N/A N/A N/A LOG debug record http %s, %s request response N/A N/A N/A N/A self _queue put N/A request response N/A close N/A N/A self N/A N/A N/A 
        graceful close, wait util queue empty
        :return:
         N/A N/A self _running N/A N/A N/A N/A LOG debug closing... N/A N/A self _closing True N/A N/A N/A N/A self _queue put None N/A N/A N/A LOG debug wait task complete... N/A N/A N/A N/A self _service_thread join N/A N/A N/A RuntimeError current service is not running N/A N/A N/A LOG info N/A N/A closed, record file: '{}' format N/A self filepath N/A shutdown N/A N/A self N/A N/A N/A 
        shutdown service, threw out items already in queue
        :return:
         N/A N/A N/A LOG debug shutdown... N/A N/A self _closing True N/A N/A N/A True N/A N/A N/A N/A N/A self _queue get_nowait N/A N/A N/A Empty N/A N/A N/A N/A N/A self close N/A N/A