Kawe Mazidjatari 04bee896be Fix string/wstring type conflict
cppkore uses string/wstring as StringBase while we use std::string/std::wstring as string/wstring. Changed all types in cppkore to String/WString instead.
2022-05-21 21:51:35 +02:00

32 lines
635 B
C++

#pragma once
#include <cstdint>
#include <memory>
#include "StringBase.h"
#include "InternetPortType.h"
namespace Net
{
// Represents a parsed Url with all components required for a WebRequest
class Uri
{
public:
explicit Uri(const char* Url);
Uri(const String& Url);
// Returns the internet port of the Uri
InternetPortType InternetPort;
// Returns the host name of the Uri
String Host;
// Returns the full path and query of the Uri
String Path;
// Returns the fully built url of the Uri components
String GetUrl();
private:
// Internal routine to parse a Uri
void ParseUri(const String& Url);
};
}