This is a library which can be used to serve web resources using Hypertext Transfer Protocol (HTTP).
More information can be found in the crate documentation.
The HttpServer
type operates as an HTTP server as described in IETF RFC
7230. It maintains set of resource
handlers and a transport layer (typically TCP) listener. In response to
incoming connections, the server parses data from the connections as HTTP
requests (represented by a
rhymuweb::Request
),
uses the resource handlers to produce responses based on these requests
(represented by a rhymuweb::Response
)
Along with the library is an example program, jeeves
, which demonstrates how
to use HttpServer
, greeting any web clients with a friendly response.