Closed Tectu closed 1 year ago
Upon inspection, any of the existing creators actually require a (string) body.
Even redirects such as 303
should or may have a body as defined by RFC7231:
Except for responses to a HEAD request, the representation of a 303 response ought to contain a short hypertext note with a hyperlink to the same URI reference provided in the Location header field.
Currently, many of the functions implemented in
malloy::http::generator
returnresponse<>
which defaults to astring_body
response. However, some of these could potentially be replaced with anempty_body
instead.