Finally here are the three high-level transformations we used
as a starting point.
defparse(request)do# TODO: Parse the request string into a map:conv=%{method:"GET",path:"/wildthings",resp_body:""}enddefroute(conv)do# TODO: Create a new map that also has the response body:conv=%{method:"GET",path:"/wildthings",resp_body:"Bears, Lions, Tigers"}enddefformat_response(conv)do# TODO: Use values in the map to create an HTTP response string:""" HTTP/1.1 200 OK Content-Type: text/html Content-Length: 20 Bears, Lions, Tigers """end