Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias Assign NameStore ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr ClassDef bases body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Slice Num If UnaryOpNot NameLoad body Raise Call NameLoad Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Slice Num Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Str NameLoad Num body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Str body Assign AttributeStore NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Num orelse Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr keyword Str decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Expr Str Assign NameStore Str If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Str While NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Assign NameStore Call AttributeLoad Str attr keyword NameLoad keyword SubscriptLoad NameLoad Slice Num Raise Call NameLoad NameLoad If CompareEq NameLoad Str body Raise Call NameLoad Call AttributeLoad Str attr SubscriptLoad NameLoad Slice Num orelse AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword Str If Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Slice Num body Expr Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad decorator_list decorator_list
N/A N/A logging N/A ssl N/A re polaris_health ProtocolError N/A tcp N/A __all__ N/A HTTPRequest N/A LOG N/A N/A logging getLogger __name__ N/A N/A N/A LOG addHandler N/A N/A logging NullHandler N/A UNVERIFIED_SSL_CONTEXT N/A N/A ssl _create_unverified_context HTTPResponse N/A N/A N/A HTTP response N/A _STATUS_LINE_RE N/A N/A re compile ^HTTP\/\d\.\d (\d+) ([^\r]*)\r\n flags N/A re I __init__ N/A N/A self raw N/A N/A N/A Parse a raw HTTP response into components and sets:

        self.status_code:
        self.status_reason

        args:
            raw: string, decoded bytes received from a server
         N/A N/A self raw raw N/A N/A N/A self _parse_status N/A _parse_status N/A N/A self N/A N/A N/A Search for HTTP Status-Line in self.raw, parse out status_code and 
        status_reason
         N/A m N/A N/A N/A self _STATUS_LINE_RE search N/A N/A self raw N/A 128 N/A N/A m N/A N/A N/A ProtocolError N/A N/A Unable to find HTTP Status-Line in(up to 512 chars): {} format N/A N/A self raw N/A 512 N/A N/A self status_code N/A int N/A N/A m group 1 N/A N/A self status_reason N/A N/A m group 2 N/A N/A HTTPRequest N/A N/A N/A HTTP request __init__ N/A N/A self ip use_ssl hostname url_path port timeout N/A False None / None 5 N/A N/A 
        args:
            ip: string, ip address to connect to
            use_ssl: bool, whether to use SSL
            hostname: server's hostname, this will be supplied 
                in "Host:" header; when using SSL, this will also be
                supplied via SNI 
            url_path: str, URL url_path, e.g. /index.html
            port: int, port number to use, by default port 80 will be used
                (443 if use_ssl is True)

         N/A N/A self use_ssl use_ssl N/A N/A self ip ip N/A N/A self url_path url_path N/A N/A N/A N/A N/A self url_path startswith / N/A N/A N/A self url_path N/A N/A /{} format N/A self url_path N/A N/A self hostname hostname N/A N/A self port port N/A N/A N/A self port None N/A N/A N/A self use_ssl N/A N/A N/A self port 443 N/A N/A N/A self port 80 N/A N/A self timeout timeout N/A get N/A N/A self N/A N/A N/A HTTP GET N/A N/A N/A self _make method GET N/A _make N/A N/A self method N/A GET N/A N/A Make HTTP request

        args:
            method: string, one of GET, POST, PUT

        returns:
            Response() object
         N/A host_header N/A N/A self hostname N/A N/A host_header N/A N/A Host: {}
 format N/A self hostname N/A req_str N/A N/A {} {} HTTP/1.0
{}Connection: close

 format method N/A self url_path host_header N/A tcp_sock N/A N/A tcp TCPSocket ip N/A self ip port N/A self port timeout N/A self timeout N/A N/A self use_ssl N/A N/A N/A tcp_sock _sock N/A N/A UNVERIFIED_SSL_CONTEXT wrap_socket N/A tcp_sock _sock server_hostname N/A self hostname N/A N/A N/A tcp_sock connect N/A N/A N/A tcp_sock sendall N/A N/A req_str encode N/A response_string N/A True N/A N/A N/A N/A recv_bytes N/A N/A tcp_sock recv N/A N/A N/A ProtocolError N/A e N/A N/A log_msg N/A N/A failed to find Status-Line within the timeout, got {error}, response(up to 512 chars): {response_string} format error e response_string N/A response_string N/A 512 N/A N/A ProtocolError log_msg N/A N/A recv_bytes N/A N/A N/A ProtocolError N/A N/A remote closed the connection, failed to find Status-Line in the response(up to 512 chars): {} format N/A response_string N/A 128 N/A N/A response_string N/A N/A recv_bytes decode errors ignore N/A N/A N/A N/A HTTPResponse _STATUS_LINE_RE search N/A response_string N/A 128 N/A N/A N/A N/A tcp_sock close N/A N/A HTTPResponse response_string N/A N/A