(str2, leading = true, trailing = true)
| 51694 | } |
| 51695 | serialization += value; |
| 51696 | } |
| 51697 | return serialization; |
| 51698 | } |
| 51699 | function isHTTPWhiteSpace(char) { |
| 51700 | return char === "\r" || char === "\n" || char === " " || char === " "; |
| 51701 | } |
| 51702 | function removeHTTPWhitespace(str2, leading = true, trailing = true) { |
| 51703 | let lead = 0; |
| 51704 | let trail = str2.length - 1; |
| 51705 | if (leading) { |
| 51706 | for (; lead < str2.length && isHTTPWhiteSpace(str2[lead]); lead++) ; |
| 51707 | } |
| 51708 | if (trailing) { |
| 51709 | for (; trail > 0 && isHTTPWhiteSpace(str2[trail]); trail--) ; |
no test coverage detected
searching dependent graphs…