@@ -504,13 +504,8 @@ Note that this example does some things manually for demonstrative purposes. In
504 (cat 3 (cat 3 (scot %da now) 10) q.u.body.request)
504 (cat 3 (cat 3 (scot %da now) 10) q.u.body.request)
505=/ data=octs
505=/ data=octs
506 (as-octs:mimes:html msg)
506 (as-octs:mimes:html msg)
508− (crip ((d-co:co 1) p.data))
509=/ =response-header:http
507=/ =response-header:http
511− :~ ['Content-Length' content-length]
512− ['Content-Type' 'text/plain']
508+ [200 ['Content-Type' 'text/plain']~]
514[response-header `data]
509[response-header `data]
@@ -526,9 +521,9 @@ The sample of the second nested gate must be:
526[authenticated=? =request:http]
521[authenticated=? =request:http]
529−The return type of the generator must be [simple-payload:http](@/docs/arvo/eyre/data-types.md#simple-payload-http).
524+The return type of the generator must be [simple-payload:http](@/docs/arvo/eyre/data-types.md#simple-payload-http). If you look at our example generator you'll see it meets these requirements.
531−If you look at our example generator you'll see it meets these requirements.
526+Because generators return the entire HTTP message as a single `simple-payload`, Eyre can calculate the `content-length` itself and automatically add the header, so we don't need to do it by hand like with a Gall agent.
533In order to make our generator available, we must bind it to a URL path. To do this, we send Eyre a `%serve` `task`, which looks like:
528In order to make our generator available, we must bind it to a URL path. To do this, we send Eyre a `%serve` `task`, which looks like: