Protocol
SONION/1.0 looks a lot like HTTP/1.1 carried over TLS.
- URL:
sonion://host[:port]/path?query - Port: 6767 by default
- TLS: 1.3 only
- ALPN:
sonion/1
Request
Section titled “Request”GET /index.html SONION/1.0Host: cool.rizzLines end with CRLF, and a blank line ends the headers. Methods are GET, HEAD, POST, PUT, PATCH, DELETE and OPTIONS.
Response
Section titled “Response”SONION/1.0 200 okContent-Type: text/htmlContent-Length: 18
<h1>hello</h1>Status codes mean the same as in HTTP and clients follow up to 5 redirects.
Connections
Section titled “Connections”Connections stay open for more requests unless either side sends a Connection: close. A server closes a connection after 120 idle seconds or 1000 requests.
Limits
Section titled “Limits”| Request line | 8 KB |
| Status line | 64 bytes |
| Headers | 16 KB |
| Body | 10 MB |
Try it
Section titled “Try it”sonion fetch sonion://domains.son/ --head