_ZN6YaHTTP9CookieJarC2Ev:
   65|  4.27k|    CookieJar() {}; //<! constructs empty cookie jar
_ZN6YaHTTP9CookieJar5clearEv:
   71|  12.8k|    void clear() {
   72|  12.8k|      this->cookies.clear();
   73|  12.8k|    }
_ZN6YaHTTP6CookieaSERKS0_:
   22|   263k|     Cookie& operator=(const Cookie &rhs) {
   23|   263k|       name = rhs.name;
   24|   263k|       value = rhs.value;
   25|   263k|       domain = rhs.domain;
   26|   263k|       path = rhs.path;
   27|   263k|       secure = rhs.secure;
   28|   263k|       httponly = rhs.httponly;
   29|   263k|       expires = rhs.expires;
   30|   263k|       return *this;
   31|   263k|     }
_ZN6YaHTTP6CookieC2ERKS0_:
   12|   808k|     Cookie(const Cookie &rhs) {
   13|   808k|       name = rhs.name;
   14|   808k|       value = rhs.value;
   15|   808k|       domain = rhs.domain;
   16|   808k|       path = rhs.path;
   17|   808k|       secure = rhs.secure;
   18|   808k|       httponly = rhs.httponly;
   19|   808k|       expires = rhs.expires;
   20|   808k|     }; //<! Copy cookie values
_ZN6YaHTTP6CookieC2Ev:
    5|  7.08k|     Cookie() {
    6|  7.08k|       secure = false;
    7|  7.08k|       httponly = false;
    8|  7.08k|       name = value = "";
    9|  7.08k|       expires = DateTime();
   10|  7.08k|     }; //!< Set the cookie to empty value
_ZN6YaHTTP9CookieJar12keyValuePairERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERS7_SA_:
   75|   808k|    void keyValuePair(const std::string &keyvalue, std::string &key, std::string &value) {
   76|   808k|      size_t pos;
   77|   808k|      pos = keyvalue.find("=");
   78|   808k|      if (pos == std::string::npos) throw ParseError("Not a Key-Value pair (cookie)");
  ------------------
  |  Branch (78:11): [True: 120, False: 808k]
  ------------------
   79|   808k|      key = std::string(keyvalue.begin(), keyvalue.begin()+pos);
   80|   808k|      value = std::string(keyvalue.begin()+pos+1, keyvalue.end());
   81|   808k|    } //<! key value pair parser
_ZN6YaHTTP9CookieJar17parseCookieHeaderERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   83|  2.08k|    void parseCookieHeader(const std::string &cookiestr) {
   84|  2.08k|      size_t pos, npos;
   85|  2.08k|      std::list<Cookie> lcookies;
   86|  2.08k|      Cookie c;
   87|  2.08k|      pos = 0;
   88|   810k|      while(pos < cookiestr.size()) {
  ------------------
  |  Branch (88:13): [True: 808k, False: 2.08k]
  ------------------
   89|   808k|        if ((npos = cookiestr.find("; ", pos)) == std::string::npos)
  ------------------
  |  Branch (89:13): [True: 1.86k, False: 806k]
  ------------------
   90|  1.86k|          npos = cookiestr.size();
   91|   808k|        keyValuePair(cookiestr.substr(pos, npos-pos), c.name, c.value);
   92|   808k|        c.name = YaHTTP::Utility::decodeURL(c.name);
   93|   808k|        c.value = YaHTTP::Utility::decodeURL(c.value);
   94|   808k|        lcookies.push_back(c);
   95|   808k|        pos = npos+2;
   96|   808k|      }
   97|   265k|      for(std::list<Cookie>::iterator i = lcookies.begin(); i != lcookies.end(); i++) {
  ------------------
  |  Branch (97:61): [True: 263k, False: 2.08k]
  ------------------
   98|   263k|        this->cookies[i->name] = *i;
   99|   263k|      }
  100|  2.08k|    }

_ZN6YaHTTP5ErrorC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
    9|    406|    Error(const std::string& reason_): reason(reason_) {};
_ZN6YaHTTP5ErrorD2Ev:
   10|    406|    virtual ~Error() throw() {};
_ZN6YaHTTP10ParseErrorC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   22|    406|    ParseError(const std::string& reason_): Error(reason_) {};

_ZN6YaHTTP7isspaceEc:
   10|  12.4M|  bool isspace(char c) {
   11|  12.4M|    return std::isspace(c) != 0;
   12|  12.4M|  }
_ZN6YaHTTP7isspaceEcRKNSt3__16localeE:
   14|  16.8k|  bool isspace(char c, const std::locale& loc) {
   15|  16.8k|    return std::isspace(c, loc);
   16|  16.8k|  }
_ZN6YaHTTP11AsyncLoaderINS_7RequestEE4feedERKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE:
   43|  4.27k|  bool AsyncLoader<T>::feed(const std::string& somedata) {
   44|  4.27k|    buffer.append(somedata);
   45|  34.3k|    while(state < 2) {
  ------------------
  |  Branch (45:11): [True: 34.1k, False: 139]
  ------------------
   46|  34.1k|      int cr=0;
   47|  34.1k|      pos = buffer.find_first_of("\n");
   48|       |      // need to find CRLF in buffer
   49|  34.1k|      if (pos == std::string::npos) return false;
  ------------------
  |  Branch (49:11): [True: 2.91k, False: 31.2k]
  ------------------
   50|  31.2k|      if (pos>0 && buffer[pos-1]=='\r')
  ------------------
  |  Branch (50:11): [True: 27.9k, False: 3.33k]
  |  Branch (50:20): [True: 246, False: 27.6k]
  ------------------
   51|    246|        cr=1;
   52|  31.2k|      std::string line(buffer.begin(), buffer.begin()+pos-cr); // exclude CRLF
   53|  31.2k|      buffer.erase(buffer.begin(), buffer.begin()+pos+1); // remove line from buffer including CRLF
   54|       |
   55|  31.2k|      if (state == 0) { // startup line
  ------------------
  |  Branch (55:11): [True: 4.25k, False: 27.0k]
  ------------------
   56|  4.25k|        if (target->kind == YAHTTP_TYPE_REQUEST) {
  ------------------
  |  |   31|  4.25k|#define YAHTTP_TYPE_REQUEST 1
  ------------------
  |  Branch (56:13): [True: 4.25k, False: 0]
  ------------------
   57|  4.25k|          std::string ver;
   58|  4.25k|          std::string tmpurl;
   59|  4.25k|          std::istringstream iss(line);
   60|  4.25k|          iss >> target->method >> tmpurl >> ver;
   61|  4.25k|          if (ver.size() == 0)
  ------------------
  |  Branch (61:15): [True: 4.09k, False: 158]
  ------------------
   62|  4.09k|            target->version = 9;
   63|    158|          else if (ver.find("HTTP/0.9") == 0)
  ------------------
  |  Branch (63:20): [True: 1, False: 157]
  ------------------
   64|      1|            target->version = 9;
   65|    157|          else if (ver.find("HTTP/1.0") == 0)
  ------------------
  |  Branch (65:20): [True: 2, False: 155]
  ------------------
   66|      2|            target->version = 10;
   67|    155|          else if (ver.find("HTTP/1.1") == 0)
  ------------------
  |  Branch (67:20): [True: 2, False: 153]
  ------------------
   68|      2|            target->version = 11;
   69|    153|          else
   70|    153|            throw ParseError("HTTP version not supported");
   71|       |          // uppercase the target method
   72|  4.10k|          std::transform(target->method.begin(), target->method.end(), target->method.begin(), ::toupper);
   73|  4.10k|          target->url.parse(tmpurl);
   74|  4.10k|          target->getvars = Utility::parseUrlParameters(target->url.parameters);
   75|  4.10k|          state = 1;
   76|  4.10k|        } else if(target->kind == YAHTTP_TYPE_RESPONSE) {
  ------------------
  |  |   32|      0|#define YAHTTP_TYPE_RESPONSE 2
  ------------------
  |  Branch (76:19): [True: 0, False: 0]
  ------------------
   77|      0|          std::string ver;
   78|      0|          std::istringstream iss(line);
   79|      0|          std::string::size_type pos1;
   80|      0|          iss >> ver >> target->status;
   81|      0|          std::getline(iss, target->statusText);
   82|      0|          pos1=0;
   83|      0|          while(pos1 < target->statusText.size() && YaHTTP::isspace(target->statusText.at(pos1))) pos1++;
  ------------------
  |  Branch (83:17): [True: 0, False: 0]
  |  Branch (83:53): [True: 0, False: 0]
  ------------------
   84|      0|          target->statusText = target->statusText.substr(pos1); 
   85|      0|          if ((pos1 = target->statusText.find("\r")) != std::string::npos) {
  ------------------
  |  Branch (85:15): [True: 0, False: 0]
  ------------------
   86|      0|            target->statusText = target->statusText.substr(0, pos1-1);
   87|      0|          }
   88|      0|          if (ver.size() == 0) {
  ------------------
  |  Branch (88:15): [True: 0, False: 0]
  ------------------
   89|      0|            target->version = 9;
   90|      0|          } else if (ver.find("HTTP/0.9") == 0)
  ------------------
  |  Branch (90:22): [True: 0, False: 0]
  ------------------
   91|      0|            target->version = 9;
   92|      0|          else if (ver.find("HTTP/1.0") == 0)
  ------------------
  |  Branch (92:20): [True: 0, False: 0]
  ------------------
   93|      0|            target->version = 10;
   94|      0|          else if (ver.find("HTTP/1.1") == 0)
  ------------------
  |  Branch (94:20): [True: 0, False: 0]
  ------------------
   95|      0|            target->version = 11;
   96|      0|          else
   97|      0|            throw ParseError("HTTP version not supported");
   98|      0|          state = 1;
   99|      0|        }
  100|  27.0k|      } else if (state == 1) {
  ------------------
  |  Branch (100:18): [True: 27.0k, False: 0]
  ------------------
  101|  27.0k|        std::string key,value;
  102|  27.0k|        size_t pos1;
  103|  27.0k|        if (line.empty()) {
  ------------------
  |  Branch (103:13): [True: 1.03k, False: 25.9k]
  ------------------
  104|  1.03k|          chunked = (target->headers.find("transfer-encoding") != target->headers.end() && target->headers["transfer-encoding"] == "chunked");
  ------------------
  |  Branch (104:22): [True: 375, False: 661]
  |  Branch (104:92): [True: 343, False: 32]
  ------------------
  105|  1.03k|          state = 2;
  106|  1.03k|          break;
  107|  1.03k|        }
  108|       |        // split headers
  109|  25.9k|        if ((pos1 = line.find(":")) == std::string::npos) {
  ------------------
  |  Branch (109:13): [True: 19, False: 25.9k]
  ------------------
  110|     19|          throw ParseError("Malformed header line");
  111|     19|        }
  112|  25.9k|        key = line.substr(0, pos1);
  113|  25.9k|        value = line.substr(pos1 + 1);
  114|  12.4M|        for(std::string::iterator it=key.begin(); it != key.end(); it++)
  ------------------
  |  Branch (114:51): [True: 12.4M, False: 25.9k]
  ------------------
  115|  12.4M|          if (YaHTTP::isspace(*it))
  ------------------
  |  Branch (115:15): [True: 10, False: 12.4M]
  ------------------
  116|     10|            throw ParseError("Header key contains whitespace which is not allowed by RFC");
  117|       |
  118|  25.9k|        Utility::trim(value);
  119|  25.9k|        std::transform(key.begin(), key.end(), key.begin(), ::tolower);
  120|       |        // is it already defined
  121|       |
  122|  25.9k|        if (key == "set-cookie" && target->kind == YAHTTP_TYPE_RESPONSE) {
  ------------------
  |  |   32|    214|#define YAHTTP_TYPE_RESPONSE 2
  ------------------
  |  Branch (122:13): [True: 214, False: 25.7k]
  |  Branch (122:36): [True: 0, False: 214]
  ------------------
  123|      0|          target->jar.parseSetCookieHeader(value);
  124|  25.9k|        } else if (key == "cookie" && target->kind == YAHTTP_TYPE_REQUEST) {
  ------------------
  |  |   31|  2.08k|#define YAHTTP_TYPE_REQUEST 1
  ------------------
  |  Branch (124:20): [True: 2.08k, False: 23.8k]
  |  Branch (124:39): [True: 2.08k, False: 0]
  ------------------
  125|  2.08k|          target->jar.parseCookieHeader(value);
  126|  23.8k|        } else {
  127|  23.8k|          if (key == "host" && target->kind == YAHTTP_TYPE_REQUEST) {
  ------------------
  |  |   31|  2.38k|#define YAHTTP_TYPE_REQUEST 1
  ------------------
  |  Branch (127:15): [True: 2.38k, False: 21.4k]
  |  Branch (127:32): [True: 2.38k, False: 0]
  ------------------
  128|       |            // maybe it contains port?
  129|  2.38k|            if ((pos1 = value.find(":")) == std::string::npos) {
  ------------------
  |  Branch (129:17): [True: 527, False: 1.86k]
  ------------------
  130|    527|              target->url.host = value;
  131|  1.86k|            } else {
  132|  1.86k|              target->url.host = value.substr(0, pos1);
  133|  1.86k|              target->url.port = ::atoi(value.substr(pos1).c_str());
  134|  1.86k|            }
  135|  2.38k|          }
  136|  23.8k|          if (target->headers.find(key) != target->headers.end()) {
  ------------------
  |  Branch (136:15): [True: 12.1k, False: 11.6k]
  ------------------
  137|  12.1k|            target->headers[key] = target->headers[key] + ";" + value;
  138|  12.1k|          } else {
  139|  11.6k|            target->headers[key] = std::move(value);
  140|  11.6k|          }
  141|  23.8k|        }
  142|  25.9k|      }
  143|  31.2k|    }
  144|       |
  145|  1.17k|    minbody = 0;
  146|       |    // check for expected body size
  147|  1.17k|    if (target->kind == YAHTTP_TYPE_REQUEST) maxbody = target->max_request_size;
  ------------------
  |  |   31|  1.17k|#define YAHTTP_TYPE_REQUEST 1
  ------------------
  |  Branch (147:9): [True: 1.03k, False: 139]
  ------------------
  148|    139|    else if (target->kind == YAHTTP_TYPE_RESPONSE) maxbody = target->max_response_size;
  ------------------
  |  |   32|    139|#define YAHTTP_TYPE_RESPONSE 2
  ------------------
  |  Branch (148:14): [True: 0, False: 139]
  ------------------
  149|    139|    else maxbody = 0;
  150|       |
  151|  1.17k|    if (!chunked) {
  ------------------
  |  Branch (151:9): [True: 693, False: 482]
  ------------------
  152|    693|      if (target->headers.find("content-length") != target->headers.end()) {
  ------------------
  |  Branch (152:11): [True: 488, False: 205]
  ------------------
  153|    488|        std::istringstream maxbodyS(target->headers["content-length"]);
  154|    488|        maxbodyS >> minbody;
  155|    488|        maxbody = minbody;
  156|    488|      }
  157|    693|      if (minbody < 1) return true; // guess there isn't anything left.
  ------------------
  |  Branch (157:11): [True: 217, False: 476]
  ------------------
  158|    476|      if (target->kind == YAHTTP_TYPE_REQUEST && static_cast<ssize_t>(minbody) > target->max_request_size) throw ParseError("Max request body size exceeded");
  ------------------
  |  |   31|    952|#define YAHTTP_TYPE_REQUEST 1
  ------------------
  |  Branch (158:11): [True: 476, False: 0]
  |  Branch (158:50): [True: 66, False: 410]
  ------------------
  159|    410|      else if (target->kind == YAHTTP_TYPE_RESPONSE && static_cast<ssize_t>(minbody) > target->max_response_size) throw ParseError("Max response body size exceeded");
  ------------------
  |  |   32|    820|#define YAHTTP_TYPE_RESPONSE 2
  ------------------
  |  Branch (159:16): [True: 0, False: 410]
  |  Branch (159:56): [True: 0, False: 0]
  ------------------
  160|    476|    }
  161|       |
  162|    892|    if (maxbody == 0) hasBody = false;
  ------------------
  |  Branch (162:9): [True: 0, False: 892]
  ------------------
  163|    892|    else hasBody = true;
  164|       |
  165|    892|    if (buffer.size() == 0) return ready();
  ------------------
  |  Branch (165:9): [True: 104, False: 788]
  ------------------
  166|       |
  167|  4.66k|    while(buffer.size() > 0) {
  ------------------
  |  Branch (167:11): [True: 4.14k, False: 517]
  ------------------
  168|  4.14k|      if (chunked) {
  ------------------
  |  Branch (168:11): [True: 3.83k, False: 308]
  ------------------
  169|  3.83k|        if (chunk_size == 0) {
  ------------------
  |  Branch (169:13): [True: 1.98k, False: 1.85k]
  ------------------
  170|  1.98k|          char buf[100];
  171|       |          // read chunk length
  172|  1.98k|          if ((pos = buffer.find('\n')) == std::string::npos) return false;
  ------------------
  |  Branch (172:15): [True: 13, False: 1.96k]
  ------------------
  173|  1.96k|          if (pos > 99)
  ------------------
  |  Branch (173:15): [True: 15, False: 1.95k]
  ------------------
  174|     15|            throw ParseError("Impossible chunk_size");
  175|  1.95k|          buffer.copy(buf, pos);
  176|  1.95k|          buf[pos]=0; // just in case...
  177|  1.95k|          buffer.erase(buffer.begin(), buffer.begin()+pos+1); // remove line from buffer
  178|  1.95k|          if (sscanf(buf, "%x", &chunk_size) != 1) {
  ------------------
  |  Branch (178:15): [True: 21, False: 1.93k]
  ------------------
  179|     21|            throw ParseError("Unable to parse chunk size");
  180|     21|          }
  181|  1.93k|          if (chunk_size == 0) { state = 3; break; } // last chunk
  ------------------
  |  Branch (181:15): [True: 5, False: 1.92k]
  ------------------
  182|  1.92k|          if (chunk_size > (std::numeric_limits<decltype(chunk_size)>::max() - 2)) {
  ------------------
  |  Branch (182:15): [True: 2, False: 1.92k]
  ------------------
  183|      2|            throw ParseError("Chunk is too large");
  184|      2|          }
  185|  1.92k|        } else {
  186|  1.85k|          int crlf=1;
  187|  1.85k|          if (buffer.size() < static_cast<size_t>(chunk_size+1)) return false; // expect newline
  ------------------
  |  Branch (187:15): [True: 89, False: 1.76k]
  ------------------
  188|  1.76k|          if (buffer.at(chunk_size) == '\r') {
  ------------------
  |  Branch (188:15): [True: 474, False: 1.29k]
  ------------------
  189|    474|            if (buffer.size() < static_cast<size_t>(chunk_size+2) || buffer.at(chunk_size+1) != '\n') return false; // expect newline after carriage return
  ------------------
  |  Branch (189:17): [True: 9, False: 465]
  |  Branch (189:70): [True: 21, False: 444]
  ------------------
  190|    444|            crlf=2;
  191|  1.29k|          } else if (buffer.at(chunk_size) != '\n') return false;
  ------------------
  |  Branch (191:22): [True: 30, False: 1.26k]
  ------------------
  192|  1.70k|          std::string tmp = buffer.substr(0, chunk_size);
  193|  1.70k|          buffer.erase(buffer.begin(), buffer.begin()+chunk_size+crlf);
  194|  1.70k|          bodybuf << tmp;
  195|  1.70k|          chunk_size = 0;
  196|  1.70k|          if (buffer.size() == 0) break; // just in case
  ------------------
  |  Branch (196:15): [True: 66, False: 1.64k]
  ------------------
  197|  1.70k|        }
  198|  3.83k|      } else {
  199|    308|        if (bodybuf.str().length() + buffer.length() > maxbody)
  ------------------
  |  Branch (199:13): [True: 97, False: 211]
  ------------------
  200|     97|          bodybuf << buffer.substr(0, maxbody - bodybuf.str().length());
  201|    211|        else
  202|    211|          bodybuf << buffer;
  203|    308|        buffer = "";
  204|    308|      }
  205|  4.14k|    }
  206|       |
  207|    588|    if (chunk_size!=0) return false; // need more data
  ------------------
  |  Branch (207:9): [True: 68, False: 520]
  ------------------
  208|       |
  209|    520|    return ready();
  210|    588|  };

_ZN6YaHTTP7RequestC2Ev:
  229|  4.27k|    Request() { Request::initialize(); };
_ZN6YaHTTP8HTTPBaseC2Ev:
   98|  4.27k|    HTTPBase() {
   99|  4.27k|      HTTPBase::initialize();
  100|  4.27k|    };
_ZN6YaHTTP8HTTPBase10initializeEv:
  103|  12.8k|    virtual void initialize() {
  104|  12.8k|      kind = 0;
  105|  12.8k|      status = 0;
  106|  12.8k|#ifdef HAVE_CPP_FUNC_PTR
  107|  12.8k|      renderer = SendBodyRender();
  108|  12.8k|#endif
  109|  12.8k|      max_request_size = YAHTTP_MAX_REQUEST_SIZE;
  ------------------
  |  |   24|  12.8k|#define YAHTTP_MAX_REQUEST_SIZE 2097152
  ------------------
  110|  12.8k|      max_response_size = YAHTTP_MAX_RESPONSE_SIZE;
  ------------------
  |  |   28|  12.8k|#define YAHTTP_MAX_RESPONSE_SIZE 2097152
  ------------------
  111|  12.8k|      url = "";
  112|  12.8k|      method = "";
  113|  12.8k|      statusText = "";
  114|  12.8k|      jar.clear();
  115|  12.8k|      headers.clear();
  116|  12.8k|      parameters.clear();
  117|  12.8k|      getvars.clear();
  118|  12.8k|      postvars.clear();
  119|  12.8k|      body = "";
  120|  12.8k|      routeName = "";
  121|  12.8k|      version = 11; // default to version 1.1
  122|  12.8k|      is_multipart = false;
  123|  12.8k|    }
_ZN6YaHTTP8HTTPBase14SendBodyRenderC2Ev:
   48|  12.8k|      SendBodyRender() {};
_ZN6YaHTTP7Request10initializeEv:
  238|  8.55k|    void initialize() override {
  239|  8.55k|      HTTPBase::initialize();
  240|  8.55k|      this->kind = YAHTTP_TYPE_REQUEST;
  ------------------
  |  |   31|  8.55k|#define YAHTTP_TYPE_REQUEST 1
  ------------------
  241|  8.55k|    }
_ZN6YaHTTP8HTTPBaseD2Ev:
  101|  4.27k|    virtual ~HTTPBase() = default;
_ZN6YaHTTP11AsyncLoaderINS_7RequestEE10initializeEPS1_:
  312|  4.27k|    void initialize(T* target_) {
  313|  4.27k|      chunked = false; chunk_size = 0;
  314|  4.27k|      bodybuf.str(""); minbody = 0; maxbody = 0;
  315|  4.27k|      pos = 0; state = 0; this->target = target_;
  316|  4.27k|      hasBody = false;
  317|  4.27k|      buffer = "";
  318|  4.27k|      this->target->initialize();
  319|  4.27k|    }; //<! Initialize the parser for target and clear state
_ZN6YaHTTP11AsyncLoaderINS_7RequestEE8finalizeEv:
  330|    407|    void finalize() {
  331|    407|      bodybuf.flush();
  332|    407|      if (ready()) {
  ------------------
  |  Branch (332:11): [True: 407, False: 0]
  ------------------
  333|    407|        strstr_map_t::iterator cpos = target->headers.find("content-type");
  334|    407|        if (cpos != target->headers.end() && Utility::iequals(cpos->second, "application/x-www-form-urlencoded", 32)) {
  ------------------
  |  Branch (334:13): [True: 132, False: 275]
  |  Branch (334:13): [True: 98, False: 309]
  |  Branch (334:46): [True: 98, False: 34]
  ------------------
  335|     98|          target->postvars = Utility::parseUrlParameters(bodybuf.str());
  336|     98|        }
  337|    407|        target->body = bodybuf.str();
  338|    407|      }
  339|    407|      bodybuf.str("");
  340|    407|      this->target = NULL;
  341|    407|    }; //<! finalize and release target
_ZN6YaHTTP11AsyncLoaderINS_7RequestEE5readyEv:
  321|    890|    bool ready() {
  322|    890|     return (chunked == true && state == 3) || // if it's chunked we get end of data indication
  ------------------
  |  Branch (322:14): [True: 78, False: 812]
  |  Branch (322:33): [True: 10, False: 68]
  ------------------
  323|    890|             (chunked == false && state > 1 &&  
  ------------------
  |  Branch (323:15): [True: 812, False: 68]
  |  Branch (323:35): [True: 812, False: 0]
  ------------------
  324|    880|               (!hasBody || 
  ------------------
  |  Branch (324:17): [True: 217, False: 595]
  ------------------
  325|    812|                 (bodybuf.str().size() <= maxbody && 
  ------------------
  |  Branch (325:19): [True: 595, False: 0]
  ------------------
  326|    595|                  bodybuf.str().size() >= minbody)
  ------------------
  |  Branch (326:19): [True: 370, False: 225]
  ------------------
  327|    812|               )
  328|    880|             ); 
  329|    890|    }; //<! whether we have received enough data

_ZN6YaHTTP3URLC2Ev:
  166|  4.27k|      URL() { initialize(); }; //<! construct empty url
_ZN6YaHTTP3URL10initializeEv:
  116|  21.2k|      void initialize() {
  117|  21.2k|        protocol = ""; host = ""; port = 0; username = ""; password = ""; path = ""; parameters = ""; anchor =""; pathless = true;
  118|  21.2k|      }; //<! initialize to empty URL
_ZN6YaHTTP3URLC2EPKc:
  171|  12.8k|      URL(const char *url) {
  172|  12.8k|        parse(std::string(url));
  173|  12.8k|      }; //<! calls parse with url
_ZN6YaHTTP3URL5parseERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  175|  16.9k|      bool parse(const std::string& url) {
  176|       |        // setup
  177|  16.9k|        initialize();
  178|       |
  179|  16.9k|        if (url.size() > YAHTTP_MAX_URL_LENGTH) return false;
  ------------------
  |  |    8|  16.9k|#define YAHTTP_MAX_URL_LENGTH 2048
  ------------------
  |  Branch (179:13): [True: 16, False: 16.9k]
  ------------------
  180|  16.9k|        size_t pos = 0;
  181|  16.9k|        if (*(url.begin()) != '/') { // full url?
  ------------------
  |  Branch (181:13): [True: 16.6k, False: 270]
  ------------------
  182|  16.6k|          if (parseSchema(url, pos) == false) return false;
  ------------------
  |  Branch (182:15): [True: 15.3k, False: 1.29k]
  ------------------
  183|  1.29k|          if (pathless) {
  ------------------
  |  Branch (183:15): [True: 797, False: 502]
  ------------------
  184|    797|            parameters = url.substr(pos);
  185|    797|            return true;
  186|    797|          }
  187|    502|          if (parseUserPass(url, pos) == false) return false;
  ------------------
  |  Branch (187:15): [True: 0, False: 502]
  ------------------
  188|    502|          if (parseHost(url, pos) == false) return false;
  ------------------
  |  Branch (188:15): [True: 28, False: 474]
  ------------------
  189|    502|        }
  190|    744|        if (parsePath(url, pos) == false) return false;
  ------------------
  |  Branch (190:13): [True: 0, False: 744]
  ------------------
  191|    744|        if (parseParameters(url, pos) == false) return false;
  ------------------
  |  Branch (191:13): [True: 0, False: 744]
  ------------------
  192|    744|        return parseAnchor(url, pos);
  193|    744|    }; //<! parse various formats of urls ranging from http://example.com/foo?bar=baz into data:base64:d089swt64wt... 
_ZN6YaHTTP3URL11parseSchemaERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERm:
   15|  16.6k|      bool parseSchema(const std::string& url, size_t &pos) {
   16|  16.6k|          size_t pos1;
   17|  16.6k|          if (pos >= url.size()) return false; // no data
  ------------------
  |  Branch (17:15): [True: 15.3k, False: 1.33k]
  ------------------
   18|  1.33k|          if ( (pos1 = url.find_first_of(":",pos)) == std::string::npos ) return false; // schema is mandatory
  ------------------
  |  Branch (18:16): [True: 39, False: 1.29k]
  ------------------
   19|  1.29k|          protocol = url.substr(pos, pos1-pos);
   20|  1.29k|          if (protocol == "http") port = 80;
  ------------------
  |  Branch (20:15): [True: 1, False: 1.29k]
  ------------------
   21|  1.29k|          if (protocol == "https") port = 443;
  ------------------
  |  Branch (21:15): [True: 1, False: 1.29k]
  ------------------
   22|  1.29k|          pos = pos1+1; // after :
   23|  1.29k|          if (url.compare(pos, 2, "//") == 0) {
  ------------------
  |  Branch (23:15): [True: 502, False: 797]
  ------------------
   24|    502|             pathless = false; // if this is true we put rest into parameters
   25|    502|             pos += 2;
   26|    502|          }
   27|  1.29k|          return true;
   28|  1.33k|      }; //<! parse schema/protocol part 
_ZN6YaHTTP3URL13parseUserPassERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERm:
   60|    502|      bool parseUserPass(const std::string& url, size_t &pos) {
   61|    502|          size_t pos1,pos2;
   62|    502|          if (pos >= url.size()) return true; // no data
  ------------------
  |  Branch (62:15): [True: 1, False: 501]
  ------------------
   63|       |
   64|    501|          if ( (pos1 = url.find_first_of("@",pos)) == std::string::npos ) return true; // no userinfo
  ------------------
  |  Branch (64:16): [True: 301, False: 200]
  ------------------
   65|    200|          pos2 = url.find_first_of(":",pos);
   66|       |
   67|    200|          if (pos2 != std::string::npos) { // comes with password
  ------------------
  |  Branch (67:15): [True: 113, False: 87]
  ------------------
   68|    113|             username = url.substr(pos, pos2 - pos);
   69|    113|             password = url.substr(pos2+1, pos1 - pos2 - 1);
   70|    113|             password = Utility::decodeURL(password);
   71|    113|          } else {
   72|     87|             username = url.substr(pos, pos1 - pos);
   73|     87|          }
   74|    200|          pos = pos1+1;
   75|    200|          username = Utility::decodeURL(username);
   76|    200|          return true;
   77|    501|      }; //<! parse possible username and password
_ZN6YaHTTP3URL9parseHostERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERm:
   30|    502|      bool parseHost(const std::string& url, size_t &pos) {
   31|    502|          size_t pos1;
   32|    502|          if (pos >= url.size()) return true; // no data
  ------------------
  |  Branch (32:15): [True: 59, False: 443]
  ------------------
   33|    443|          if ( (pos1 = url.find_first_of("/", pos)) == std::string::npos ) {
  ------------------
  |  Branch (33:16): [True: 305, False: 138]
  ------------------
   34|    305|             host = url.substr(pos);
   35|    305|             path = "/";
   36|    305|             pos = url.size();
   37|    305|          } else {
   38|    138|             host = url.substr(pos, pos1-pos);
   39|    138|             pos = pos1;
   40|    138|          }
   41|    443|          if (host.at(0) == '[') { // IPv6
  ------------------
  |  Branch (41:15): [True: 154, False: 289]
  ------------------
   42|    154|            if ((pos1 = host.find_first_of("]")) == std::string::npos) {
  ------------------
  |  Branch (42:17): [True: 28, False: 126]
  ------------------
   43|       |              // incomplete address
   44|     28|              return false;
   45|     28|            }
   46|    126|            size_t pos2;
   47|    126|            if ((pos2 = host.find_first_of(":", pos1)) != std::string::npos) {
  ------------------
  |  Branch (47:17): [True: 62, False: 64]
  ------------------
   48|     62|              std::istringstream tmp(host.substr(pos2 + 1));
   49|     62|              tmp >> port;
   50|     62|            }
   51|    126|            host = host.substr(1, pos1 - 1);
   52|    289|          } else if ( (pos1 = host.find_first_of(":")) != std::string::npos ) {
  ------------------
  |  Branch (52:23): [True: 155, False: 134]
  ------------------
   53|    155|             std::istringstream tmp(host.substr(pos1+1));
   54|    155|             tmp >> port;
   55|    155|             host = host.substr(0, pos1);
   56|    155|          }
   57|    415|          return true;
   58|    443|      }; //<! parse host and port
_ZN6YaHTTP3URL9parsePathERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERm:
   79|    725|      bool parsePath(const std::string& url, size_t &pos) {
   80|    725|          size_t pos1;
   81|    725|          if (pos >= url.size()) return true; // no data
  ------------------
  |  Branch (81:15): [True: 338, False: 387]
  ------------------
   82|    387|          if (url[pos] != '/') return false; // not an url
  ------------------
  |  Branch (82:15): [True: 0, False: 387]
  ------------------
   83|    387|          if ( (pos1 = url.find_first_of("?", pos)) == std::string::npos ) {
  ------------------
  |  Branch (83:16): [True: 141, False: 246]
  ------------------
   84|    141|             path = url.substr(pos);
   85|    141|             pos = url.size();
   86|    246|          } else {
   87|    246|             path = url.substr(pos, pos1-pos);
   88|    246|             pos = pos1;
   89|    246|          }
   90|    387|          return true;
   91|    387|      }; //<! parse path component
_ZN6YaHTTP3URL15parseParametersERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERm:
   93|    725|      bool parseParameters(const std::string& url, size_t &pos) {
   94|    725|          size_t pos1;
   95|    725|          if (pos >= url.size()) return true; // no data
  ------------------
  |  Branch (95:15): [True: 479, False: 246]
  ------------------
   96|    246|          if (url[pos] == '#') return true; // anchor starts here
  ------------------
  |  Branch (96:15): [True: 0, False: 246]
  ------------------
   97|    246|          if (url[pos] != '?') return false; // not a parameter
  ------------------
  |  Branch (97:15): [True: 0, False: 246]
  ------------------
   98|    246|          if ( (pos1 = url.find_first_of("#", pos)) == std::string::npos ) {
  ------------------
  |  Branch (98:16): [True: 149, False: 97]
  ------------------
   99|    149|             parameters = url.substr(pos+1);;
  100|    149|             pos = url.size();
  101|    149|          } else {
  102|     97|             parameters = url.substr(pos+1, pos1-pos-1);
  103|     97|             pos = pos1;
  104|     97|          }
  105|    246|          if (parameters.size()>0 && *(parameters.end()-1) == '&') parameters.resize(parameters.size()-1);
  ------------------
  |  Branch (105:15): [True: 162, False: 84]
  |  Branch (105:15): [True: 3, False: 243]
  |  Branch (105:38): [True: 3, False: 159]
  ------------------
  106|    246|          return true;
  107|    246|      }; //<! parse url parameters
_ZN6YaHTTP3URL11parseAnchorERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERm:
  109|    725|      bool parseAnchor(const std::string& url, size_t &pos) {
  110|    725|          if (pos >= url.size()) return true; // no data
  ------------------
  |  Branch (110:15): [True: 628, False: 97]
  ------------------
  111|     97|          if (url[pos] != '#') return false; // not anchor
  ------------------
  |  Branch (111:15): [True: 0, False: 97]
  ------------------
  112|     97|          anchor = url.substr(pos+1);
  113|     97|          return true;
  114|     97|      }; //<! parse anchor

_ZN6YaHTTP7Utility9decodeURLERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  229|  1.65M|    static std::string decodeURL(const std::string& component) {
  230|  1.65M|        std::string result = component;
  231|  1.65M|        size_t pos1,pos2;
  232|  1.65M|        pos2 = 0;
  233|  2.14M|        while((pos1 = result.find_first_of("%", pos2))!=std::string::npos) {
  ------------------
  |  Branch (233:15): [True: 503k, False: 1.64M]
  ------------------
  234|   503k|           std::string code;
  235|   503k|           char a,b,c;
  236|   503k|           if (pos1 + 2 > result.length()) return result; // end of result
  ------------------
  |  Branch (236:16): [True: 9.72k, False: 493k]
  ------------------
  237|   493k|           code = result.substr(pos1+1, 2);
  238|   493k|           a = std::tolower(code[0]); b = std::tolower(code[1]);
  239|       |
  240|   493k|           if ((( '0' > a || a > '9') && ('a' > a || a > 'f')) ||
  ------------------
  |  Branch (240:19): [True: 129k, False: 363k]
  |  Branch (240:30): [True: 335k, False: 27.8k]
  |  Branch (240:43): [True: 138k, False: 327k]
  |  Branch (240:54): [True: 39.3k, False: 288k]
  ------------------
  241|   493k|              (( '0' > b || b > '9') && ('a' > b || b > 'f'))) {
  ------------------
  |  Branch (241:18): [True: 277k, False: 38.0k]
  |  Branch (241:29): [True: 34.4k, False: 3.67k]
  |  Branch (241:42): [True: 279k, False: 32.2k]
  |  Branch (241:53): [True: 18.8k, False: 13.3k]
  ------------------
  242|   476k|              pos2 = pos1+3;
  243|   476k|              continue;
  244|   476k|           }
  245|       |
  246|  17.0k|           if ('0' <= a && a <= '9') a = a - '0';
  ------------------
  |  Branch (246:16): [True: 17.0k, False: 0]
  |  Branch (246:28): [True: 3.88k, False: 13.1k]
  ------------------
  247|  13.1k|           else if ('a' <= a && a <= 'f') a = a - 'a' + 0x0a;
  ------------------
  |  Branch (247:21): [True: 13.1k, False: 0]
  |  Branch (247:33): [True: 13.1k, False: 0]
  ------------------
  248|  17.0k|           if ('0' <= b && b <= '9') b = b - '0';
  ------------------
  |  Branch (248:16): [True: 17.0k, False: 0]
  |  Branch (248:28): [True: 3.67k, False: 13.3k]
  ------------------
  249|  13.3k|           else if ('a' <= b && b <= 'f') b = b - 'a' + 0x0a;
  ------------------
  |  Branch (249:21): [True: 13.3k, False: 0]
  |  Branch (249:33): [True: 13.3k, False: 0]
  ------------------
  250|       |
  251|  17.0k|           c = (a<<4)+b;
  252|  17.0k|           result = result.replace(pos1,3,1,c);
  253|  17.0k|           pos2=pos1;
  254|  17.0k|        }
  255|  1.64M|        return result;
  256|  1.65M|    }; //<! Decodes %xx from string into bytes
_ZNK6YaHTTP25ASCIICINullSafeComparatorclERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_:
   26|  2.19M|    bool operator() (const std::string& lhs, const std::string& rhs) const {
   27|  2.19M|      int v;
   28|  2.19M|      std::string::const_iterator lhi = lhs.begin();
   29|  2.19M|      std::string::const_iterator rhi = rhs.begin();
   30|  4.28M|      for(;lhi != lhs.end() && rhi != rhs.end(); lhi++, rhi++)
  ------------------
  |  Branch (30:12): [True: 3.35M, False: 931k]
  |  Branch (30:12): [True: 3.33M, False: 954k]
  |  Branch (30:32): [True: 3.33M, False: 22.5k]
  ------------------
   31|  3.33M|        if ((v = ::tolower(*lhi) - ::tolower(*rhi)) != 0) return v<0; 
  ------------------
  |  Branch (31:13): [True: 1.23M, False: 2.09M]
  ------------------
   32|   954k|      if (lhi == lhs.end() && rhi != rhs.end()) return true;
  ------------------
  |  Branch (32:11): [True: 931k, False: 22.5k]
  |  Branch (32:11): [True: 325k, False: 629k]
  |  Branch (32:31): [True: 325k, False: 606k]
  ------------------
   33|   629k|      if (lhi != lhs.end() && rhi == rhs.end()) return false;
  ------------------
  |  Branch (33:11): [True: 22.5k, False: 606k]
  |  Branch (33:11): [True: 22.5k, False: 606k]
  |  Branch (33:31): [True: 22.5k, False: 0]
  ------------------
   34|   606k|      return false; // they are equal
   35|   629k|    }
_ZN6YaHTTP8DateTimeC2Ev:
   57|   822k|     DateTime() { 
   58|   822k|       initialize();
   59|   822k|     }; //<! Construct and initialize
_ZN6YaHTTP8DateTime10initializeEv:
   61|   822k|     void initialize() {
   62|   822k|       isSet = false; 
   63|   822k|       year = month = day = wday = hours = minutes = seconds = utc_offset = 0;
   64|   822k|       month = 1; // it's invalid otherwise
   65|   822k|     }; //<! Creates year 0 date
_ZN6YaHTTP7Utility7iequalsERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_m:
  419|    132|    static bool iequals(const std::string& a, const std::string& b, size_t length) {
  420|    132|      std::string::const_iterator ai, bi;
  421|    132|      size_t i;
  422|  3.59k|      for(ai = a.begin(), bi = b.begin(), i = 0; ai != a.end() && bi != b.end() && i < length; ai++,bi++,i++) {
  ------------------
  |  Branch (422:50): [True: 3.58k, False: 18]
  |  Branch (422:50): [True: 3.47k, False: 121]
  |  Branch (422:67): [True: 3.58k, False: 0]
  |  Branch (422:84): [True: 3.47k, False: 103]
  ------------------
  423|  3.47k|        if (::toupper(*ai) != ::toupper(*bi)) return false;
  ------------------
  |  Branch (423:13): [True: 11, False: 3.46k]
  ------------------
  424|  3.47k|      }
  425|       |
  426|    121|      if (ai == a.end() && bi == b.end()) return true;
  ------------------
  |  Branch (426:11): [True: 18, False: 103]
  |  Branch (426:11): [True: 0, False: 121]
  |  Branch (426:28): [True: 0, False: 18]
  ------------------
  427|    121|      if ((ai == a.end() && bi != b.end()) ||
  ------------------
  |  Branch (427:11): [True: 18, False: 103]
  |  Branch (427:12): [True: 18, False: 103]
  |  Branch (427:29): [True: 18, False: 0]
  ------------------
  428|    121|          (ai != a.end() && bi == b.end())) return false;
  ------------------
  |  Branch (428:12): [True: 103, False: 0]
  |  Branch (428:29): [True: 0, False: 103]
  ------------------
  429|       |      
  430|    103|      return ::toupper(*ai) == ::toupper(*bi);
  431|    121|    }; //<! case-insensitive comparison with length
_ZN6YaHTTP7Utility18parseUrlParametersERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  376|  4.18k|    static strstr_map_t parseUrlParameters(const std::string& parameters) {
  377|  4.18k|      if (parameters.size() > YAHTTP_MAX_REQUEST_LINE_SIZE) {
  ------------------
  |  |    4|  4.18k|#define YAHTTP_MAX_REQUEST_LINE_SIZE 8192
  ------------------
  |  Branch (377:11): [True: 5, False: 4.17k]
  ------------------
  378|      5|        return {};
  379|      5|      }
  380|  4.17k|      std::string::size_type pos = 0;
  381|  4.17k|      strstr_map_t parameter_map;
  382|  20.5k|      while (pos != std::string::npos) {
  ------------------
  |  Branch (382:14): [True: 20.5k, False: 0]
  ------------------
  383|       |        // find next parameter start
  384|  20.5k|        std::string::size_type nextpos = parameters.find("&", pos);
  385|  20.5k|        std::string::size_type delim = parameters.find("=", pos);
  386|  20.5k|        if (delim > nextpos) {
  ------------------
  |  Branch (386:13): [True: 14.7k, False: 5.78k]
  ------------------
  387|  14.7k|          delim = nextpos;
  388|  14.7k|        }
  389|  20.5k|        std::string key;
  390|  20.5k|        std::string value;
  391|  20.5k|        if (delim == std::string::npos) {
  ------------------
  |  Branch (391:13): [True: 3.92k, False: 16.6k]
  ------------------
  392|  3.92k|          key = parameters.substr(pos);
  393|  16.6k|        } else {
  394|  16.6k|          key = parameters.substr(pos, delim-pos);
  395|  16.6k|          if (nextpos == std::string::npos) {
  ------------------
  |  Branch (395:15): [True: 128, False: 16.5k]
  ------------------
  396|    128|            value = parameters.substr(delim+1);
  397|  16.5k|          } else {
  398|  16.5k|            value = parameters.substr(delim+1, nextpos-delim-1);
  399|  16.5k|          }
  400|  16.6k|        }
  401|  20.5k|        if (key.empty()) {
  ------------------
  |  Branch (401:13): [True: 3.45k, False: 17.1k]
  ------------------
  402|       |          // no parameters at all
  403|  3.45k|          break;
  404|  3.45k|        }
  405|  17.1k|        parameter_map[decodeURL(key)] = decodeURL(value);
  406|  17.1k|        if (nextpos == std::string::npos) {
  ------------------
  |  Branch (406:13): [True: 714, False: 16.4k]
  ------------------
  407|       |          // no more parameters left
  408|    714|          break;
  409|    714|        }
  410|  16.4k|        if (parameter_map.size() >= YAHTTP_MAX_REQUEST_FIELDS) {
  ------------------
  |  |    8|  16.4k|#define YAHTTP_MAX_REQUEST_FIELDS 100
  ------------------
  |  Branch (410:13): [True: 7, False: 16.3k]
  ------------------
  411|      7|          break;
  412|      7|        }
  413|       |
  414|  16.3k|        pos = nextpos+1;
  415|  16.3k|      }
  416|  4.17k|      return parameter_map;
  417|  4.18k|    }; //<! parses URL parameters into string map 
_ZN6YaHTTP7Utility8trimLeftERNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  438|  25.9k|    static void trimLeft(std::string &str) {
  439|  25.9k|       const std::locale &loc = std::locale::classic();
  440|  25.9k|       std::string::iterator iter = str.begin();
  441|  27.2k|       while(iter != str.end() && YaHTTP::isspace(*iter, loc)) iter++;
  ------------------
  |  Branch (441:14): [True: 8.63k, False: 18.6k]
  |  Branch (441:14): [True: 1.34k, False: 25.9k]
  |  Branch (441:35): [True: 1.34k, False: 7.28k]
  ------------------
  442|  25.9k|       str.erase(str.begin(), iter);
  443|  25.9k|    }; //<! removes whitespace from left
_ZN6YaHTTP7Utility9trimRightERNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  445|  25.9k|    static void trimRight(std::string &str) {
  446|  25.9k|       const std::locale &loc = std::locale::classic();
  447|  25.9k|       std::string::reverse_iterator iter = str.rbegin();
  448|  26.8k|       while(iter != str.rend() && YaHTTP::isspace(*iter, loc)) iter++;
  ------------------
  |  Branch (448:14): [True: 8.24k, False: 18.6k]
  |  Branch (448:14): [True: 959, False: 25.9k]
  |  Branch (448:36): [True: 959, False: 7.28k]
  ------------------
  449|  25.9k|       str.erase(iter.base(), str.end());
  450|  25.9k|    }; //<! removes whitespace from right
_ZN6YaHTTP7Utility4trimERNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  452|  25.9k|    static void trim(std::string &str) {
  453|  25.9k|       trimLeft(str);
  454|  25.9k|       trimRight(str);
  455|  25.9k|    }; //<! removes whitespace from left and right

LLVMFuzzerTestOneInput:
   28|  4.27k|{
   29|  4.27k|  try {
   30|  4.27k|    YaHTTP::AsyncRequestLoader yarl;
   31|  4.27k|    YaHTTP::Request req;
   32|       |
   33|  4.27k|    yarl.initialize(&req);
   34|  4.27k|    bool finished = yarl.feed(std::string(reinterpret_cast<const char*>(data), size));
   35|  4.27k|    if (finished) {
  ------------------
  |  Branch (35:9): [True: 407, False: 3.86k]
  ------------------
   36|    407|      yarl.finalize();
   37|    407|    }
   38|  4.27k|  }
   39|  4.27k|  catch (const YaHTTP::ParseError& e) {
   40|    406|  }
   41|  4.27k|  catch (const std::exception& e) {
   42|     21|  }
   43|  4.27k|  catch (...) {
   44|      0|  }
   45|       |
   46|  4.27k|  return 0;
   47|  4.27k|}

