macOS
brew install nghttp2local Homebrew formula metadata
sudo port install nghttp2MacPorts ports tree · www/nghttp2/Portfile · 来源: api.github.com
安装
brew install nghttp2local Homebrew formula metadata
sudo port install nghttp2MacPorts ports tree · www/nghttp2/Portfile · 来源: api.github.com
sudo apk add nghttp2Alpine Linux edge package indexes · nghttp2 · 来源: dl-cdn.alpinelinux.org
sudo apt install nghttp2Debian stable package indexes · nghttp2 · 来源: deb.debian.org
sudo dnf install nghttp2Fedora Rawhide package metadata · nghttp2 · 来源: dl.fedoraproject.org
nix profile install nixpkgs#nghttp2nixpkgs package indexes · pkgs/by-name/ng/nghttp2/package.nix · 来源: api.github.com
sudo zypper install nghttp2openSUSE Tumbleweed package metadata · nghttp2 · 来源: download.opensuse.org
概览
HTTP/2 C Library
历史
nghttp2 is a C implementation of HTTP/2's framing layer plus command-line tools: `nghttp` for client/frame inspection, `nghttpd` for a test server, `nghttpx` for proxying, and `h2load` for benchmarking. It also exposes HPACK encoding and decoding APIs.
The project came out of the HTTP/2 standardization period. Its own documentation says the code base was forked from Tatsuhiro Tsujikawa's earlier spdylay project, a C implementation of Google's SPDY protocol, and was originally based on RFC 7540 and RFC 7541 before moving toward RFC 9113.
That origin explains the shape of the package: it is not only a library, but a lab bench for HTTP/2. The tools let implementers speak h2 or h2c directly, inspect frames, run a proxy, and stress-test servers while the library handles the binary framing details.
nghttp2 became important because large projects did not want to hand-roll HTTP/2 framing. Apache httpd's documentation says `mod_http2` uses nghttp2 as its implementation base and requires libnghttp2 when building HTTP/2 support.
curl also made nghttp2 part of the mainstream HTTP/2 toolchain. curl's 7.43.0 changelog in June 2015 required nghttp2 1.0.0 or later for HTTP/2 multiplexing support, and everything curl documents HTTP/2 support for HTTP and HTTPS when curl is built with the needed prerequisites.
Developers install nghttp2 directly when they need the command-line tools, or indirectly as a dependency for HTTP clients and servers. `nghttp` is useful for seeing HTTP/2 frames rather than just HTTP semantics, while `h2load` is a quick load generator for h2 endpoints.
Packagers care about nghttp2 because it is a protocol-library dependency with ABI and feature implications. A curl or Apache build with libnghttp2 available can expose HTTP/2 support; without it, the package may build but lose protocol behavior that users assume is present.
nghttp2 is the little C library behind a lot of HTTP/2 enablement. It is a classic packaging multiplier: small on its own, but it changes the capabilities of curl, Apache httpd, and other network stacks that link to it.
安全态势
broad file, network, media, or database tool signal.
blue 风险 · 中 置信度 · tool
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
h2load | cli | 全局可执行文件 | |
nghttp | cli | 全局可执行文件 | |
nghttpd | cli | 全局可执行文件 | |
nghttpx | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/nghttp2/nghttp2
安装元数据
| 软件包键 | brew:nghttp2 |
|---|---|
| 版本 | 1.69.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/nghttp2 |
| 主页 | https://nghttp2.org/ |
| 仓库 | https://github.com/nghttp2/nghttp2 |
| 上游文档 | https://nghttp2.org/documentation |
| 许可证 | MIT |
| 源码归档 | https://github.com/nghttp2/nghttp2/releases/download/v1.69.0/nghttp2-1.69.0.tar.gz |
| 最后更新 | 2026-06-27T15:56:15-04:00 |
| Pulse | updated |
| 依赖 | c-ares, jemalloc, libev, libnghttp2, openssl@3 |
| 构建依赖 | pkgconf |
| macOS 提供的库 | libxml2 |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | nghttp2 |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
libnghttp2-14 1.64.0-1.1
library implementing HTTP/2 protocol (shared library)
sudo apt install libnghttp2-14libnghttp2-dev 1.64.0-1.1
library implementing HTTP/2 protocol (development files)
sudo apt install libnghttp2-devlibnghttp2-doc 1.64.0-1.1
library implementing HTTP/2 protocol (documentation)
sudo apt install libnghttp2-docnghttp2 1.64.0-1.1
server, proxy and client implementing HTTP/2
sudo apt install nghttp2nghttp2-client 1.64.0-1.1
client implementing HTTP/2 protocol
sudo apt install nghttp2-clientnghttp2-proxy 1.64.0-1.1
reverse proxy implementing HTTP/2 protocol
sudo apt install nghttp2-proxynghttp2-server 1.64.0-1.1
server implementing HTTP/2 protocol
sudo apt install nghttp2-servernghttp2
nix profile install nixpkgs#nghttp2libnghttp2-14 1.59.0-1build4
library implementing HTTP/2 protocol (shared library)
sudo apt install libnghttp2-14libnghttp2-dev 1.59.0-1build4
library implementing HTTP/2 protocol (development files)
sudo apt install libnghttp2-devlibnghttp2-doc 1.59.0-1build4
library implementing HTTP/2 protocol (documentation)
sudo apt install libnghttp2-docnghttp2 1.59.0-1build4
server, proxy and client implementing HTTP/2
sudo apt install nghttp2nghttp2-client 1.59.0-1build4
client implementing HTTP/2 protocol
sudo apt install nghttp2-clientnghttp2-proxy 1.59.0-1build4
reverse proxy implementing HTTP/2 protocol
sudo apt install nghttp2-proxynghttp2-server 1.59.0-1build4
server implementing HTTP/2 protocol
sudo apt install nghttp2-servernghttp2 1.69.0-r0
HTTP/2 C client, server and proxy
sudo apk add nghttp2来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.