2026-09-29 20:42:04 +01:00
|
|
|
# libnx
|
|
|
|
|
|
|
|
|
|
[](LICENSE)
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
LibNX is an HTTP/1.1 networking library for Unix-like systems (XNU/macOS, Linux
|
|
|
|
|
and the BSDs), written in C with no external dependencies other than libc and
|
|
|
|
|
pthreads.
|
|
|
|
|
|
|
|
|
|
## What does LibNX provide?
|
|
|
|
|
|
|
|
|
|
LibNX provides the stable plumbing a network client needs without pulling in
|
|
|
|
|
TLS, HTTP helpers or a build system.
|
|
|
|
|
|
|
|
|
|
## Scope
|
|
|
|
|
|
|
|
|
|
Nothing beyond base UNIX TCP sockets, event loops and async name resolution.
|
|
|
|
|
|
|
|
|
|
### Minimal scopes
|
|
|
|
|
|
|
|
|
|
- HTTP/1.1 client
|
|
|
|
|
- URL parsing
|
2026-09-29 21:00:18 +01:00
|
|
|
- Optional hosts and alias overrides (`/var/lib/libnx/hosts.txt`)
|
2026-09-29 20:42:04 +01:00
|
|
|
|
|
|
|
|
## Unsupported
|
|
|
|
|
|
|
|
|
|
TLS and HTTPS are not supported. They would need X.509 parsing, a certificate
|
|
|
|
|
store and AEAD ciphers, none of which can be done on libc alone.
|
|
|
|
|
|
|
|
|
|
## Documentation
|
|
|
|
|
|
|
|
|
|
- [Docs](md/docs.md)
|
|
|
|
|
- [Q&A](md/FAQ.md)
|
|
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
|
|
Released under the MIT License. See [LICENSE](LICENSE).
|