Function responseHasBody [src]
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
Prototype
pub fn responseHasBody(m: Method) bool
Parameters
m: Method
Source
pub fn responseHasBody(m: Method) bool {
return switch (m) {
.GET, .POST, .DELETE, .CONNECT, .OPTIONS, .PATCH => true,
.HEAD, .PUT, .TRACE => false,
};
}