morpheus_network::state

Module http

Source
Expand description

HTTP download state machine.

Non-blocking HTTP GET with streaming support for ISO downloads.

§States

Init → Resolving → Connecting → SendingRequest → ReceivingHeaders → ReceivingBody → Done
  ↓         ↓           ↓              ↓                ↓                 ↓
Failed   Failed      Failed         Failed           Failed           Failed

§Architecture

This state machine composes DNS and TCP state machines:

  • DnsResolveState for hostname resolution
  • TcpConnState for connection establishment

The HTTP layer handles request/response framing on top of TCP.

§Streaming Mode

For large downloads (ISOs), data is passed to a callback function as it arrives, rather than buffering the entire response.

§Reference

NETWORK_IMPL_GUIDE.md §5.5

Structs§

Enums§