Coretex
|
Public Member Functions | |
bool | hasFailed (self) |
bool | isUnauthorized (self) |
Represents Coretex backend response to network request Properties ---------- response : Response API response endpoint : endpoint name of API endpoint json : Any response in json format
Definition at line 38 of file network_response.py.
bool coretex.networking.network_response.NetworkResponse.hasFailed | ( | self | ) |
Checks if request has failed Returns ------- bool -> True if request has failed, False if request has not failed
Definition at line 72 of file network_response.py.
bool coretex.networking.network_response.NetworkResponse.isUnauthorized | ( | self | ) |
Checks if request was unauthorized Returns ------- bool -> True if status code is 401 and request has failed, False if not
Definition at line 83 of file network_response.py.