HTTP/1.1 · Baseline
Simple and widely compatible
Use it for the first lesson, ordinary APIs and WebSocket on a standalone listener. Run plaintext during local development or TLS in deployment.
Product knowledge · Beginner → Advanced · HTTP versions
Routes and handlers do not need to be rewritten when the HTTP version changes. The listener, TLS, network port and verification path change. CoAkka HTTP Runtime 2.3.2 serves exactly the declared choice; it does not silently downgrade an invalid configuration.
01 · Beginner · Choose for the workload
HTTP/1.1 · Baseline
Use it for the first lesson, ordinary APIs and WebSocket on a standalone listener. Run plaintext during local development or TLS in deployment.
HTTP/2 · Advanced
Useful when concurrent requests share one service. CoAkka HTTP Runtime serves h2 over TLS; the public profile does not teach cleartext h2c.
HTTP/3 · Advanced
Useful when evaluating HTTP across latent or changing networks. It needs an HTTP/3 client, TLS 1.3 and an end-to-end UDP path.
Practical rule: if there is no concrete problem for HTTP/2 or HTTP/3 to solve, keep HTTP/1.1 and measure the real workload first. Do not migrate because the number is larger.
02 · What stays and what changes
| Area | Stays the same | Changes by version |
|---|---|---|
| Application | Routes, path/query/header/body, handlers, responses and authorization. | It should not guess the transport version. |
| Listener | Address, port and limits are still declared before start. | protocol, security and credential material. |
| Network | The service still has an explicit endpoint. | HTTP/1.1 and HTTP/2 use TCP; HTTP/3 uses UDP. |
| Verification | Always send a real request and check the response. | The client must force the intended version and prove its negotiation or handshake. |
03 · Before start
Read capabilities from the exact loaded 2.3.2 package. An API enum is configuration vocabulary, not target-support evidence.
HTTP/1.1 permits plaintext or TLS/mTLS. HTTP/2 and HTTP/3 require TLS or mTLS with a complete credential set.
Open TCP for HTTP/1.1 and HTTP/2, and UDP for HTTP/3. Containers, firewalls, load balancers and cloud rules must preserve that port type.
A browser can hide fallback. The lab uses a client that forces one HTTP version and exposes the negotiation result.
04 · Construction-time configuration
HTTP/1.1 → TCP listener → plaintext or TLS/mTLS
HTTP/2 → TCP listener → TLS/mTLS → ALPN h2
HTTP/3 → UDP listener → TLS 1.3/mTLS → h3
protocolHTTP_1_1, HTTP_2 or HTTP_3. An initialized configuration defaults to HTTP/1.1.securitybind address + portNo hidden fallback. A standalone HTTP/2
listener is h2-only. An HTTP/3 listener does not
create a TCP fallback or publish Alt-Svc. When several
paths are required, deployment creates and verifies each explicit endpoint.
Advanced · MultiProtocol
Use this when older and newer clients need the same route. CoAkka HTTP Runtime opens TCP and UDP on the same port. TLS negotiates HTTP/1.1 or HTTP/2 over TCP; QUIC uses UDP for HTTP/3. A TCP-only firewall path can still serve HTTP/1.1 and HTTP/2, but cannot prove HTTP/3 works.
Select MultiProtocol when creating the listener. Go, Node.js, Bun, Python, Java, Kotlin, C# and Swift expose it. C and C++ use the SDK's Listener V1 API. All 3 protocols use the same address and port number.
Use MultiProtocol for buffered requests and responses. Choose a standalone listener for streaming, WebSocket, mTLS or certificate reload. If clients discover HTTP/3 via Alt-Svc, configure the announcement in the application or deployment.
05 · Combinations to remember
Core 2.3 supports WebSocket on standalone listeners for all 3 protocols. An HTTP/2 or HTTP/3 client must support Extended CONNECT. The first WebSocket exercise uses HTTP/1.1.
Create a new service at a distinct endpoint, start it, read effective facts, send a real request, and only then add it to ingress. Withdraw and close the old service within a finite budget.
Ingress or application deployment owns DNS, Alt-Svc, TCP fallback and rollout. Verify the real UDP path; successful start does not prove an external client can reach it.
06 · Failures by stage
| Symptom | Check | Action |
|---|---|---|
| Start is refused | Missing capability, plaintext HTTP/2/3, malformed PEM, key mismatch or missing credential. | Fix the declaration or choose a capable package/target; never silently fall back. |
| TLS handshake fails | CA, hostname, validity dates, key match or client certificate. | Fix trust or identity; do not treat -k as evidence. |
| The client reports HTTP/1.1 | Wrong endpoint/proxy or a client that did not force the version. | Call the listener directly, force the version and inspect ALPN/response output. |
| HTTP/3 times out | Blocked UDP, wrong port mapping, a client without HTTP/3 or absent discovery. | Check each network layer and test client support first. |
| WebSocket is rejected | The URL uses MultiProtocol, or the client lacks Extended CONNECT. | Use a standalone listener with a client for the chosen protocol. |
07 · Next