Function requestHasBody [src]
Returns true if a request of this method is allowed to have a body
Actual behavior from servers may vary and should still be checked
Prototype
pub fn requestHasBody(m: Method) bool
Parameters
m: Method
Source
pub fn requestHasBody(m: Method) bool {
return switch (m) {
.POST, .PUT, .PATCH => true,
.GET, .HEAD, .DELETE, .CONNECT, .OPTIONS, .TRACE => false,
};
}