return true;
}
+ constexpr std::array<uint8_t, 8> http11ALPN{'h','t','t','p','/','1','.','1'};
+ if (protocols.size() == http11ALPN.size() && memcmp(protocols.data(), http11ALPN.data(), http11ALPN.size()) == 0) {
+ ++d_ci.cs->dohFrontend->d_http1Stats.d_nbQueries;
+ }
+
const std::string data("HTTP/1.1 400 Bad Request\r\nConnection: Close\r\n\r\n<html><body>This server implements RFC 8484 - DNS Queries over HTTP, and requires HTTP/2 in accordance with section 5.2 of the RFC.</body></html>\r\n");
d_out.insert(d_out.end(), data.begin(), data.end());
writeToSocket(false);
:property integer error-responses: Number of HTTP responses sent with a non-200 code
:property integer get-queries: Number of DoH queries received via the GET HTTP method
:property integer http-connects: Number of DoH TCP connections established to this frontend
- :property integer http1-queries: Number of DoH queries received over HTTP/1
+ :property integer http1-queries: Number of DoH queries received over HTTP/1 (or connection attempts with a HTTP/1.1 ALPN when the nghttp2 provider is used)
:property integer http1-x00-responses: Number of DoH responses sent, over HTTP/1, per response code (200, 400, 403, 500, 502)
:property integer http1-other-responses: Number of DoH responses sent, over HTTP/1, with another response code
:property integer http2-queries: Number of DoH queries received over HTTP/2