Chapter 7. An HTTP Server

Table of Contents

1. Overview
2. The Program
3. Walk-through
4. Building and Running
5. See Also

1. Overview

The server-http program shows that the framework can also serve plain HTTP. A vws_svr with a process_http handler answers ordinary HTTP requests — those that are not WebSocket upgrades. This one replies with a fixed body and a Content-Length derived from that body, so the header can never disagree with the bytes actually sent.