| 980 | } |
| 981 | |
| 982 | QString Packet::getMethodFromURL(QString path) |
| 983 | { |
| 984 | QUrl url = QUrl(path); |
| 985 | if(!path.startsWith("http") || (!url.isValid())) { |
| 986 | return ""; |
| 987 | } |
| 988 | |
| 989 | if(path.startsWith("https")) { |
| 990 | return "HTTPS Get"; |
| 991 | } else { |
| 992 | return "HTTP Get"; |
| 993 | } |
| 994 | |
| 995 | } |
| 996 | |
| 997 | QString Packet::getHostFromURL(QString path) |
| 998 | { |
nothing calls this directly
no outgoing calls
no test coverage detected