Comment

Comment by eadmund

> all integers are little-endian

They really should be big-endian, because that’s network byte order.

IMHO it makes sense to use decimal-encoded ASCII digits instead and keep the protocol readable. Nothing like ‘telnet host.example 80’ followed by ‘GET / HTTP/1.0.’

> (1 bit) request_type: integer representing type of request

With two types already defined. No room for future extensions, then. Is the idea to just use another protocol altogether if change is necessary?

parent eadmund 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton