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.

26 lines
454 B

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