In Oak v10.0.0, hasBody has been changed to just return true if body is not undefined and body has been made safe to call. hasBody is considered unreliable. If there isn't a body, body will return an empty body instead of throwing an error. Because of that, checking if there is a body is no longer needed.
In Oak v10.0.0, hasBody has been changed to just return true if body is not undefined and body has been made safe to call. hasBody is considered unreliable. If there isn't a body, body will return an empty body instead of throwing an error. Because of that, checking if there is a body is no longer needed.
https://deno.land/x/oak@v10.0.0#request