14 lines
186 B
JavaScript
14 lines
186 B
JavaScript
'use strict';
|
|
|
|
module.exports = header => {
|
|
switch (header) {
|
|
case ':method':
|
|
case ':scheme':
|
|
case ':authority':
|
|
case ':path':
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
};
|