isSse method
Checks if the method is a Server-Sent Events method
Implementation
bool isSse(String method) {
switch (method) {
case 'getSse':
case 'postSse':
case 'putSse':
case 'patchSse':
case 'deleteSse':
return true;
default:
return false;
}
}