foreseen

A text-based gemini browser with prefetching
git clone git://git.laack.co/foreseen.git
Log | Files | Refs | README | LICENSE

site.hpp (383B)


      1 #pragma once
      2 
      3 #include <cstdint>
      4 #include <string>
      5 
      6 class Site {
      7    private:
      8     std::string body;
      9     std::string header;
     10     bool unreachable = false;
     11 
     12    public:
     13     Site(std::string header, std::string body);
     14     std::string getBody();
     15     uint32_t getStatusCode();
     16     std::string getHeader();
     17     std::string getMeta();
     18     void setUnreachable();
     19     bool getUnreachable();
     20 };