             RGNetwork.hideIndicator()
         }
     }
+
+}
+
+
+// MARK: - URL Path Handle
+
+extension RGNetwork {
 
     private static func urlPathString(by urlString: String) throws -> String {
         if urlString.rg_hasHttpPrefix {

    private static func responseString(
        with request: DataRequest,
        success: @escaping SuccessTask,
        failure: @escaping FailTask
    ) {
        request.responseString { (responseString) in
            print("RGNetwork request debugDescription: \n", responseString.debugDescription, separator: "")

            let httpStatusCode = responseString.response?.statusCode
            guard let string = responseString.value else {
                failure(responseString.error, httpStatusCode, request, .string(responseString))
                RGNetwork.hideIndicator()
                return
            }

            success(nil, string, responseString.data, httpStatusCode, request, .string(responseString))
            RGNetwork.hideIndicator()
        }
    }

    private static func responseData(
        with request: DataRequest,
        success: @escaping SuccessTask,
        failure: @escaping FailureTask
    ) {
        request.responseData { (responseData) in
            print("RGNetwork.request.debugDescription: \n\(responseData.debugDescription)")

            let httpStatusCode = responseData.response?.statusCode
            guard let data = responseData.value else {
                failure(responseData.error, nil, nil, httpStatusCode, request, .data(responseData))
                RGNetwork.hideIndicator()
                return
            }
