MCPcopy Create free account
hub / github.com/dannagle/PacketSender / getMethodFromURL

Method getMethodFromURL

src/packet.cpp:982–995  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

980}
981
982QString 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
997QString Packet::getHostFromURL(QString path)
998{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected