You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

23 lines
366 B

#ifndef URL_H
#define URL_H
#include <string>
#include <iostream>
struct URL {
URL(std::string const& url);
std::string toString();
bool isRelative();
std::string protocol;
std::string host;
std::string document;
private:
void construct(std::string const& url);
};
std::ostream& operator<<(std::ostream& out, URL& url);
#endif