3 ms·
Fun fact: you just described Go's net/http package.
by xena 4y ago
Fun fact: you just described Go's net/http package.
- metadaemon 4y agoIt's also pretty much Express.js
- zemo 4y agonot really, point 2 isn't in the standard library.
- xena 4y agohttps://pkg.go.dev/net/http?utm_source=godoc#ReadRequest https://pkg.go.dev/net/http?utm_source=godoc#ReadRequest
- zemo 4y agothat’s not what the Axum example does. The function you’re linking turns an opaque run of bytes into an http request object. What the Axum example does is turn an http request object into a value of some other type T.