pub fn responseHasBody(m: Method) bool
Returns true if a response to this method is allowed to have a body Actual behavior from clients may vary and should still be checked
m: Method
48 49 50 51 52 53
pub fn responseHasBody(m: Method) bool { return switch (m) { .GET, .POST, .PUT, .DELETE, .CONNECT, .OPTIONS, .PATCH, .QUERY => true, .HEAD, .TRACE => false, }; }
Returns true if a response to this method is allowed to have a body Actual behavior from clients may vary and should still be checked