ShowCase · two demonstrations
Watch it write a request, then lose one.
Nothing on this page describes what moonfetch would do: the same package, built
to JavaScript and loaded here, does it while you type.
01The anatomy of a request
Change the method, the address, a field or the body. The panels are produced by
moonfetch compiled to JavaScript and running in this page — the same
wire and frames a program calls.
Send it makes the request described above for real, from this page, through the browser host of the same library. It asks a public echo service, so it can be slow, and it can be refused.
02Convoy
One client, one server, ten requests, and a packet lost every few seconds. Switch the transport and watch what one loss costs the others: on HTTP/2 the streams are meant to be independent, but they share a connection, which is why HTTP/3 exists.
The octets in the score line are the library's own count: every delivery costs what
wire or frames says the request weighs, so switching transports
changes the arithmetic as well as the traffic.