{ "name": "nghttp2", "version": "1.70.0", "summary": "HTTP/2 C library (libnghttp2)", "category": "library", "license": "MIT", "homepage": "https://nghttp2.org/", "source": { "url": "https://github.com/nghttp2/nghttp2/releases/download/v1.70.0/nghttp2-1.70.0.tar.xz", "sha256": "e05cb1388eaca3830aded4ccf20044b6e1ac1a61411dcca11b0437c4285c8bc2" }, "watch": {"kind": "github-release", "repo": "nghttp2/nghttp2", "tag_regex": "^v([0-9]+(?:\\.[0-9]+)+[a-z]?[0-9]*)$"}, "deps": [], "env_packages": [], "static": true, "nss": false, "check": "check_lib libnghttp2 nghttp2/nghttp2.h 'nghttp2_hd_deflater *d; nghttp2_hd_inflater *i; nghttp2_nv nv = {(uint8_t *)\":path\", (uint8_t *)\"/bvs\", 5, 4, NGHTTP2_NV_FLAG_NONE}, out; uint8_t buf[256]; int fl = 0; nghttp2_ssize len, r; if (nghttp2_hd_deflate_new(&d, 4096) || nghttp2_hd_inflate_new(&i)) return 1; len = nghttp2_hd_deflate_hd2(d, buf, sizeof buf, &nv, 1); if (len <= 0) return 1; r = nghttp2_hd_inflate_hd3(i, &out, &fl, buf, (size_t)len, 1); if (r < 0 || !(fl & NGHTTP2_HD_INFLATE_EMIT) || out.valuelen != 4 || memcmp(out.value, \"/bvs\", 4)) return 1; printf(\"nghttp2 %s: HPACK header :path /bvs in %d bytes and back\\n\", nghttp2_version(0)->version_str, (int)len)'" }