JFLib

netio#

HTTP/1.1 server and client, TLS 1.3 subset, X.509 of a private CA, SSH-2, DNS -- crate root lib/netio/lib.rs

netio -- network protocols on top of plat::net

  dns        host names to addresses (Linux: /etc/hosts, resolv.conf, UDP / TCP queries;
             Windows: the system resolver); records of any type, a cache, DNS over TLS and
             HTTPS, DNSSEC validation (Config::dnssec, Lookup::security)
  dane       TLSA records (DNSSEC-secure) for a TLS server: lookup, trust -> Trust::Dane
             (RFC 6698, 7671)
  url        Url::parse("https://host:9443/api?x=1"), percent_encode / percent_decode,
             query_pairs
  http       Request, Response, Body (bytes or a stream sent chunked), Headers, status texts;
             the HTTP/1.1 wire format (bounded parsing, chunked transfer, keep-alive)
  server     Server::start(addr, ServerConfig, handler): accept thread + worker pool
  client     Client::request(...): blocking, timeouts, size limits; Content-Encoding decoded,
             redirects, cookies (netpkt::cookie), a connection pool, proxies
  proxy      HTTP proxies (absolute form, CONNECT tunnels), NO_PROXY, from the environment
  tls        TLS 1.3 servers and clients (ChaCha20-Poly1305, AES-GCM; X25519MLKEM768,
             X25519, P-256, P-384; Ed25519, ECDSA, RSA keys; SNI, ALPN, mutual auth;
             resumption with tickets, 0-RTT where the server allows it, OCSP stapling) and the TLS 1.2
             fallback for public servers: connect / accept -> TlsStream (a Stream)
  x509 / der the crate jflib-x509 (re-exported): certificates (parse, build with any key,
             verify chains) of a private CA and of the web PKI; PrivateKey (PKCS #8 ...);
             OCSP responses and certificate requests
  ocsp       a certificate's status from its CA's responder; the stapled responses of a TLS
             server kept current (tls::Staples)
  acme       certificates from an ACME CA (RFC 8555: Let's Encrypt, ...): accounts, orders,
             http-01 / tls-alpn-01 / dns-01, renewal information, revocation
  pem        PEM blocks
  roots      the system's certificate authorities (Windows: CryptoAPI; Linux: the bundle)
  ssh        SSH-2 client (curve25519, ssh-ed25519, chacha20-poly1305): run commands with
             stdin; the server side of the transport for tests
  trust      https to a server with its own CA: known CA, pinned fingerprint or trust on
             first use (the presented CA comes back for the user's decision); https to
             public servers with the system's CAs
  smtp       sending mail: STARTTLS / TLS, AUTH PLAIN / LOGIN, UTF-8 messages
  ws         WebSocket (RFC 6455): ws::Acceptor in a Server's handler (the upgrade, a thread
             per connection), ws::connect for clients, the frame codec for untrusted bytes
  Stream     what HTTP runs over (plat::net::TcpStream, tls::TlsStream)

Everything is blocking with timeouts and size limits on every read; a malformed peer gets an
error answer or a closed connection, never a panic.

Sections

Source: docs/API.md in the JFLib repository.